我们如何在电子邮件文本正文中发送hindi字体

时间:2016-04-29 06:06:06

标签: asp.net

 body = "<HTML><head><META http-equiv='Content-Type' content='text/html; charset=utf-8'/></head>";
 body = "<table width='80%' cellspacing='0'>";

body + =&#34;दूरभाष:0755-2 ** 4,फैक्स:2 ******&#34 ;;      body + =&#34;&#34 ;;     mh.SendMailmsg(EmailAddress,(body),&#34;&#34;);

2 个答案:

答案 0 :(得分:0)

mail.BodyEncoding = Encoding.Unicode;

应该这样做。

答案 1 :(得分:0)

您可以传递这样的印地语内容: -

body = "<html><head></head><body>दूरभाष : 0755-2**4, फैक्स : 2******</body></html>";


 MailMessage msg = new MailMessage(senderID, recieverID, subject, body);
 msg.IsBodyHtml = true;
 smtpClient.Send(msg);