AutoEncodeHeaders Property


This property controls whether MailBee should automatically encode headers and attachment filenames containing international characters.

The default value is True.

For advanced purposes, you can set it to False and encode headers manually with EncodeHeaderText method.


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 = "I want to encode headers manually"
  Mailer.AutoEncodeHeaders = False
  Mailer.Send
  Mailer.Disconnect
End If

See Also:

EncodeHeaderText method


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