Author |
|
quest Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 17 May 2004 at 1:31pm | IP Logged
|
|
|
Hi,
with the MailBee-SMTP product, can I send mail in cyrillic or japenese alphabets?
Thanks,
M.
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 17 May 2004 at 1:56pm | IP Logged
|
|
|
MailBee components are fully internationalized.
In particular, MailBee SMTP component includes Charset property which allows you to specify charset of the body.
Message headers can be also presented in any charset (and, if requested, encoded using EncodeHeaderText method).
Also, email can be sent in UTF8 format.
The code below sends email in Cyrillic (Russian is used in Subject and body):
Set objSMTP = CreateObject("MailBee.SMTP")
objSMTP.LicenseKey = "put your license key"
objSMTP.ServerName = "mail.server.com"
objSMTP.FromAddr = "from@sender.com"
objSMTP.ToAddr = "to@recipient.com"
objSMTP.Subject = "eng and 'some cyrillic here'"
objSMTP.BodyFormat = 0
' The most important thing here: set in email
' properties that content is in 1251 codepage
' (Cyrillic Russian)
objSMTP.Charset = "windows-1251"
objSMTP.BodyText = "english language and 'some cyrillic here'"
objSMTP.Send
|
Back to Top |
|
|