[英]c# SMTP mail not supporting single quote in body
i tried to send a mail , when the single quotes is removed works fine, but i need single quotes in the content. 我尝试发送邮件,删除单引号后可以正常工作,但我需要在内容中使用单引号。
This works But 这有效但是
string Body = "<p><b>Hi "
+ dcompanyName + "</b></p>"
+ "<p>Marhaba to edurar.com!!</p>"
+ "<p>Your company account is active and live.";
This Does not Work 这不起作用
string Body = "<p><b>Hi "
+ dcompanyName + "</b></p>"
+ "<p>Marhaba to edurar.com!!</p>"
+ "<p>Your company's account is active and live.";
company's and company (This is the only difference) 公司与公司(这是唯一的区别)
Does not trough any error , but mail is not receiving 没有通过任何错误,但邮件未收到
我认为此错误是由于
SMTPServer.EnableSsl = false;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.