0

My current code is: WebMail.SmtpServer = "relay-hosting.secureserver.net";
WebMail.From = "support@shayonainfo.com";

While I send a mail using above code the senders name at the receivers side is shown as "support" instead of that I want to show "Shayona".. I tried doing something like I did in C#.net but not WebMail.From = new MailAddress("support@shayonainfo.com", "Shayona Infocom");

4

2 回答 2

1

尝试:

WebMail.From = "Shayona Infocom support@shayonainfo.com";
于 2013-06-07T21:49:07.180 回答
0

从@Tom Stude的回答中,
我尝试了一下,发现在接收方的发件人姓名显示为<Shayona Infocom>..我尝试编辑他的答案,但不幸的是它没有用..

所以最后这对我有用:
WebMail.From = "Shayona Infocom support@shayonainfo.com";

于 2013-06-07T22:04:17.473 回答