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
[...] Related topics: Email chinese character – C# source code [...]
hai
i am not satisfied this is not comming to the output
Huh? What is wrong with your code? Any error message?