Mailer.ContentType = "text/html"
Darrell
---------------------------------------------------------------------------- ------------------------------------
Check out http://www.invariantsystems.com for utilities for Declude And Imail. IMail/Declude Overflow Queue Monitoring, MRTG Integration, and Log Parsers.
Corsair writes:
I'm attempting to send an HTML-formatted email from a Visual Basic 6.0
module or VBScript on an ASP page using the following code, and can
successfully send text-formatted mail, but if I send it HTML code it will
send this plain text rather than in HTML format. Can anyone tell me how to
change the code, or the IMail settings, to send HTML formatted mail?
The various str items, such as strMailBody, are variables receiving
appropriate text up above where this is called.
Thank you,
JB
Dim Mailer As Object
Const smtpMailHost = "mydomainname.com"
' call mail object
Set Mailer = CreateObject("SMTPsvg.Mailer")
Mailer.RemoteHost = smtpMailHost
' set up message
Mailer.FromAddress = strFromEmail
Mailer.fromName = strFromName
Mailer.AddRecipient strToName, strToEmail
If strCCEmail <> "" Then
Mailer.AddCC strCCName, strCCEmail
End If
Mailer.Subject = strSubject
Mailer.BodyText = strMailBody
Mailer.SendMail
Set Mailer = Nothing
To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/
To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/
