I'm using Jmail for sending email with some attachments. Basically, I will need to send out email with the contents in unicode characters such as Simplified Chinese, Japanese etc.
I have tried out and all characters are displayed well, if ONLY for me to send it to webmail such as Yahoo!/Gmail. However, I was unable to read the characters when sending to my own company email address, even on the company's webmail. All characters look weird in Microsoft Outlook/Company webmail, something like so:
Here is the Jmail code looks like:
Expand|Select|Wrap|Line Numbers
- ' This is my local SMTP server
- JMail.ServerAddress = "mail.domain.com:25"
- JMail.Sender = email
- JMail.SenderName = username
- JMail.Charset = "936"
- 'Jmail.Encoding = "base64"
- 'JMail.ContentTransferEncoding = "base64"
- JMail.Subject = subject
- JMail.AddRecipient "user@domain.com"
- JMail.HTMLBody = "<font face='Verdana' size='2'>" &_
- body &_
- "<br></font>"
- JMail.AddAttachment Server.Mappath(Application("rootFolder")) & "\" & Upload("file1").FileName
Appreciated if someone could give me some advice what would be the problems and what should I do?
Thanks so much!!