BodyEncoding Property
Specifies method to be used to encode main body
of the message.
You need to set value of this property only during message composing (i.e. for
using with MailBee.SMTP object). If the message is created by MailBee.POP3
object, its main body will be automatically decoded, so you do not need to care
about BodyEncoding.
The following encoding settings are allowed:
Value Type: | Long | |
Parameters: | None |
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.Message.BodyEncoding = 3 ' Base64 encoding Mailer.Send Mailer.Disconnect End If
See Also:
Enable8bitEncoding
Property
AltBodyEncoding Property
Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.