HTML e-mail
The sample sends HTML e-mail with no attachments.
SMTP.BodyFormat is a key property of the sample.
For simplicity, SMTP authentication is not used and no error-checking is performed.
Dim objSMTP
' Create mailer component
Set objSMTP = CreateObject("MailBee.SMTP")
' Unlock SMTP component
objSMTP.LicenseKey = "put your license key here"
' Set SMTP server name
objSMTP.ServerName = "mail.server.com"
' Set message properties
objSMTP.FromAddr = "me@mydomain.com"
objSMTP.ToAddr = "you@yourdomain.com"
objSMTP.Subject = "Message in HTML format"
' Set HTML format for the body
objSMTP.BodyFormat = 1
' Place HTML contents into the body
objSMTP.BodyText = "<html>This word is <b>bold</b></html>"
' Send it!
objSMTP.Send
<%
Dim objSMTP
' Create mailer component
Set objSMTP = Server.CreateObject("MailBee.SMTP")
' Unlock SMTP component
objSMTP.LicenseKey = "put your license key here"
' Set SMTP server name
objSMTP.ServerName = "mail.server.com"
' Set message properties
objSMTP.FromAddr = "me@mydomain.com"
objSMTP.ToAddr = "you@yourdomain.com"
objSMTP.Subject = "Message in HTML format"
' Set HTML format for the body
objSMTP.BodyFormat = 1
' Place HTML contents into the body
objSMTP.BodyText = "<html>This word is <b>bold</b></html>"
' Send it!
objSMTP.Send
%>
See Also:
Send Method