Quote:
Originally Posted by corquando
Greetings . . .
I have a slice of code wherein I'm atttempting to send emauils from a db of addresses, in a CDO environment.
Everything works just dandy excepth for the fact that the HTML link desired doesn't go through. All the text goes fine.
Without bothersonme details, here's a snippet:
Code:
StrBod = " HTML "
StrBod = StrBod & " HEAD/HEAD "
StrBod = StrBod & " BODY "
StrBod = StrBod & "Dear Valued People(s), p p "
StrBod = StrBod & "You so rock p p ""
StrBod = StrBod & "Buy this stuff p p ""
StrBod = StrBod & "You'll love it p p ""
StrBod = StrBod & "Please click on the link below for more information. p p ""
StrBod = StrBod & "Sincerely, p p ""
StrBod = StrBod & "Your Excellent Friends p p "p"
StrBod = StrBod & "a href = "" http://www.wxyz.com/and/so_forth/and/so_on.html="" + Link + """" /a "
StrBod = StrBod & " /BODY "
StrBod = StrBod & " /HTML "
With iMsg
Set .Configuration = iConf
.To = EML
.CC = ""
.BCC = ""
.From = "
.Subject = "Howdy, Folks"
.HTMLBody = StrBod
End With
(The odd spaces are to ensure no code execution - The HTML brackets are very shy . . .)
The body comes through but not the link.
Any idears?
|
I found the answer, so in case anybody wants to know . . .
The href statement is:
StrBod = StrBod & "{A href = http://www.wxyz.com/and/so_forth/and/so_on.html=}Link{/A} "
Odd brackets take the place of the HTML brackets, so exactness is maintained. No plusses or ampersands.
And there you have it. Works like a charm!