【发布时间】:2011-04-15 23:56:12
【问题描述】:
我试图用姓名和电子邮件地址更改 FROM 字段。但是当我收到邮件时,如下图所示
My network <commity@company.com [My network <commity@company.com]
Mycode如下
const string from = "My network <commity@company.com>";
StringDictionary headers = new StringDictionary();
headers.Add("to", invitee.userEmail);
headers.Add("subject", ltEmailSubject.Text);
headers.Add("from", from);
headers.Add("content-type", MediaTypeNames.Text.Html);
_emailSuccessful = SPUtility.SendEmail(elevatedSite.RootWeb, headers,
emailBody + Environment.NewLine + "");
我想要的 FROM 电子邮件地址应该如下所示
My network [commity@company.com]
【问题讨论】:
标签: c# asp.net sharepoint html-email