Sending HTML E-Mail With CDONTS

Results 1 to 3 of 3

Thread: Sending HTML E-Mail With CDONTS

  1. #1 Guest

    Default Sending HTML E-Mail With CDONTS

    Hey, <BR><BR>I&#039;m going with the article on this site, the only problem is that the email comes as an attachment. <BR><BR>All I&#039;m sending in the E-Mail is HTML formatted text.<BR><BR>I have it set up as a standard CDONTS E-mail but included this:<BR><BR> ObjMail.BodyFormat = 0 <BR> ObjMail.MailFormat = 0 <BR><BR>Has anyone sent HTML formatted E-Mails that were not attachments?<BR><BR>Thanks in advance<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Sending HTML E-Mail With CDONTS

    Yes, this is the code I used. Where strOrder is a string with HTML formatted text.<BR><BR>Set objSendMail = CreateObject("CDONTS.NewMail")<BR> With objSendMail<BR> .From = ""<BR> .To = ""<BR> .Subject = "Thank You For The Order"<BR> .BodyFormat = CdoBodyFormatHTML<BR> .MailFormat = CdoMailFormatMIME<BR> .Body = strOrder<BR> .Send<BR> End With<BR> Set objSendMail = Nothing

  3. #3 Guest

    Default Works! No bgcolor, but that's cool, Thanks!

    Like I said, there&#039;s no bgcolor, but i&#039;m sure I can just create a html table with a bgcolor,<BR><BR>thanks again!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts