Enable8bitEncoding Property


This property makes sense only for message composing (i.e. for using with MailBee.SMTP object). It covers international issues regarding non-US characters in message body.

You should set this property to True if you wish to use 8bit characters without encoding (BodyEncoding=AltBodyEncoding=0). By default, MIME messages are not allowed to have characters with ASCII codes above 127 in their bodies. However, most modern SMTP servers provide 8bit support.

8 bit characters may appear in body text only if body encoding is not used (i.e BodyEncoding=0). If you apply quoted-printable (BodyEncoding=2) or base64 (BodyEncoding=3) encoding to all document bodies, characters of encoded bodies will be within 7bit range, so Enable8bitEncoding property doesn't matter.

Default value is False.

Note: Enable8bitEncoding property controls whole message body. If all chararcters of BodyText are within 7bit range, but AltBodyText or any of message headers includes 8 bit characters, set Enable8bitEncoding=True or apply encoding to the message parts containing 8 bit characters.


Value Type: Boolean
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.Enable8bitEncoding = True
  Mailer.ImportBodyText "C:\docs\letter_with_extended_symbols.txt", False
  Mailer.Send
  Mailer.Disconnect
End If

See Also:

BodyText Property
AltBodyText Property
BodyEncoding Property
AltBodyEncoding Property


Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.