MakeAltBody Method
Produces plain-text version of HTML-formatted
BodyText and assigns it to AltBodyText property.
If BodyText does not contain HTML-formatted body (i.e. BodyFormat<>1),
this method does nothing.
You may use this method to create alternative plain-text version of existing
html-formatted body.
blnResult = ObjectName.MakeAltBody |
Parameters: | None | |
Return value As Boolean | True if successful, False otherwise |
Usage example:
Dim Mailer 'Using visual basic to create object Set Mailer = CreateObject("MailBee.SMTP") 'Using ASP to create object 'Set Mailer = Server.CreateObject("MailBee.SMTP") 'In ASP use Response.Write instead of MsgBox Mailer.LicenseKey = "put your license key here" Mailer.ServerName = "mail.server.com" If Mailer.Connect Then Mailer.Message.ToAddr = "bill@yoursite.com" Mailer.Message.FromAddr = "joe@mysite.com" Mailer.Message.Subject = "Hello" Mailer.Message.ImportBodyText "C:\docs\letter.htm", True Mailer.MakeAltBody Mailer.Send Mailer.Disconnect End If
See Also:
ImportAltBodyText Method
AltBodyText Property
BodyText Property
BodyFormat Property
Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.