EWS 托管 API 中的 EmailMessage:发件人字段
我正在使用 Exchange Services Managed API....我能够很好地发送电子邮件,但是有没有办法在发送电子邮件时更改显示的“发件人”字段...
目前我们有一个名为的默认用户[电子邮件受保护]。当我发送电子邮件时,它会在发件人字段中显示为 DoNotReply。
我可以在代码中更改它吗?
我尝试使用:
EmailMessage emailMessage = new EmailMessage(service);
emailMessage.From="xxxxx xxxxx xxxxx";`
但这似乎没有改变任何东西。那么,可以这样做吗?
I am using the Exchange Services Managed API.... I am able to send emails just fine with it, but is there a way to change the displayed From field when the email is sent....
Currently we have a default user called [email protected]. When ever I send the email it shows up in the from field as DoNotReply.
Can I change that in code?
I tried using:
EmailMessage emailMessage = new EmailMessage(service);
emailMessage.From="xxxxx xxxxx xxxxx";`
But that doesn't seem to change anything. So, is it possible to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要您想要使用的电子邮件地址的“发送方式”权限。并且您不能使用组织以外的电子邮件地址。
http://technet.microsoft.com/en-us/library/bb676368.aspx
You'll need the "Send as" permission for the email address you want to use. And you cannot use an email address which is not local to your organization.
http://technet.microsoft.com/en-us/library/bb676368.aspx
我最终要求 Exchange 管理员更改 DoNotReply 电子邮件的显示名称
I ended up asking the Exchange admin to just change the display name for DoNotReply email