Below is the source code that will send email in Chinese or other character than English.
using System.Net.Mail;
MailMessage oMsg = new MailMessage();
oMsg.From = new MailAddress(”Email”, “Name”);
oMsg.To.Add(new MailAddress(”Email”,”Name”));
oMsg.Subject = “subject”;
oMsg.Body = “Chinese character”;
oMsg.BodyEncoding = System.Text.Encoding.GetEncoding( “utf-8″ );
SmtpClient c = new SmtpClient(”SMTP”);
c.Send(oMsg);
You can find more character set recognition at Microsoft page here.
Related topics:
Send email with attachment c# source code
4 Responses
Send email with attachment c# source code by Jayce Ooi’s Paradise
May 21st, 2007 at 2:53 pm
1[…] Related topics: Email chinese character - C# source code […]
chaitanya
March 17th, 2008 at 7:17 pm
2hai
chaitanya
March 17th, 2008 at 7:18 pm
3i am not satisfied this is not comming to the output
Jayce
March 17th, 2008 at 9:12 pm
4Huh? What is wrong with your code? Any error message?
RSS feed for comments on this post · TrackBack URI
Leave a reply
Categories
Archives
Chat Chat Chat...
SP Blogger
Isabell Online Penang Florist