|
-
Feb 15th, 2001, 11:45 AM
#1
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?
-
Feb 15th, 2001, 06:17 PM
#2
Guru
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.
-
Feb 16th, 2001, 12:01 AM
#3
Lively Member
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 = "[email protected]"
myMail.To = "[email protected]"
myMail.Subject = "Sample Message"
myMail.BodyFormat = 0
myMail.MailFormat = 0
myMail.Body = HTML
myMail.Send
Set myMail = Nothing
Check it.
Regards,
Saran.
-
Feb 16th, 2001, 11:55 AM
#4
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/showthrea...threadid=55132
-
Feb 19th, 2001, 05:25 PM
#5
Hyperactive Member
Thanks
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!
If you think education is expensive, try ignorance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|