“代表”发送电子邮件
我收到了很多“代表”的电子邮件。例如,AddThis 插件代表 [email protected] 从“addThis.com”发送电子邮件]”。
如何在 C#/ASP.NET 中执行此操作?另外,如果我们使用 gmail 作为 SMTP(尽管品牌为我们公司的域),这是否有效?
我还想知道是否有人担心这不专业或在客户端 PC 上被标记为垃圾邮件?换句话说,你们真的实现了这个吗?
I have been received a lot of emails "on behalf on". For example, the AddThis plugin sending a email from "addThis.com on behalf of [email protected]".
How do I do this in C#/ASP.NET? Also, does this work if we use gmail for our SMTP, albeit branded to our company domain?
I'm also wondering if there are any concerns about this being unprofessional or getting flagged as spam on the client PC? In other words, have you guys actually implemented this...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
MailMessage 类中有三个属性:
From
Sender
ReplyTo
(或在 .NET 4 中的ReplyToList
)如果设置
Sender 与
From
不同,它的行为应该如您所愿。另请参阅此帖子 其他方面。
You have three properties in the MailMessage class:
From
Sender
ReplyTo
(or in .NET 4 theReplyToList
)If you set the
Sender
different than theFrom
, it should behave as you want it.Please also see this SO posting for other aspects.
这主要是客户端应用程序的“功能”。我猜您正在 Outlook 中查看这些电子邮件,对吗? Outlook(可能还有其他电子邮件客户端)将发件人地址与实际发件人进行比较,看看它们是否匹配。如果不这样做,Outlook 将显示“代表”信息。
大多数其他电子邮件客户端以及我所知道的所有基于网络的客户端都只是显示所提供的“发件人”地址。
This is primarily a client app "feature". I'm guessing that you are viewing these email messages in Outlook, correct? Outlook (and possibly other email clients) compare the FROM address and the actual sender to see if they match. If they don't, Outlook will display the "On Behalf Of" information.
Most other email clients, and all web-based clients that I know of, simply display the "FROM" address as it was provided.