Problems with CDO or SMTP
Posted on 2004-04-20
I'm using CDO for Win2k and IIS Smtp to send HTML formated emails through a visual basic application.
Only probelm is the CDO object or smtp server seems to be removing characters from the HTML Text
for example in the code i would have
iConf = New Configuration
iMsg = New Message
dim body as string
body = "<HTML>"
body = body & "<a href='clickhere.html'>click here</a>"
body = body & "</HTML>"
'APPLY THE SETTINGS TO THE MESSAGE
.Configuration = iConf
.From = FromName
.Sender = FromEmail
.To = ToName
.BCC = EmailBCCAddress
.ReplyTo = EmailReplyAddress
.Subject = UserMessage
.HTMLBody = body
But when i send the message the link in the body looks like:
<a href='clickherehtml'>click here</a>
The period is missing from the href attribute. It seems to do this for no reason.
I know its not the email client removing the period because i've sent it to a couple different clients and get the same result each time.