Click to See Complete Forum and Search --> : ASP and CDO
VirtuallyVB
Feb 15th, 2001, 10:45 AM
I am using CDO to send information from one form to a few different people. Everything is working fine but the body shows the link typed out instead of as a link. I thought there was something like objNewMail.BodyFormat = 1 or something like that which would make it work, but it's not working. I tried = 1 and = 0 and both showed the same thing. Does anyone know how to create a link in the email being sent through CDO?
Clunietp
Feb 15th, 2001, 05:17 PM
per MSDN
The Body property can contain either plain text or HTML. The BodyFormat property should be set to indicate whether or not the Body property includes any HTML.
I'm assuming this means that it is up to the client to determine whether or not to process the body as HTML and format it accordingly (into a real link). Your email is still sent in plain text, it just includes some HTML code too.
ayyasaran
Feb 15th, 2001, 11:01 PM
Hi,
Set Both BodyFormat and MailFormat as 0.
e.g.
Dim myMail
Set myMail = CreateObject("CDONTS.NewMail")
HTML = "<!DOCTYPE HTML PUBLIC ""-//IETF//DTD HTML//EN"">" & NL
HTML = HTML & "<html>"
HTML = HTML & "<head>"
HTML = HTML & "<meta http-equiv=""Content-Type"""
HTML = HTML & "HTML = HTML & ""content=""text/html; charset=iso-8859-1"">"""
HTML = HTML & "<title>Sample NewMail</title>"
HTML = HTML & "</head>"
HTML = HTML & "<body>"
HTML = HTML & "This is a sample message being sent using HTML. <BR></body>"
HTML = HTML & "</html>"
myMail.From = "Example@microsoft.com"
myMail.To = "Someone@microsoft.com"
myMail.Subject = "Sample Message"
myMail.BodyFormat = 0
myMail.MailFormat = 0
myMail.Body = HTML
myMail.Send
Set myMail = Nothing
Check it.
Regards,
Saran.
On behalf of whoever really posted this question, I am thanking those who answered.
There was a weird identity issue:
http://forums.vb-world.net/showthread.php?s=&threadid=55132
artsapimp
Feb 19th, 2001, 04:25 PM
Thank you very much for the replies. I'm sorry I didn't get back sooner, but because of the username problem I didn't get an email stating anyone replied.
That is exactly what I needed, thanks for hte help!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.