代表“发送”电子邮件 [英] Sending "on behalf of" emails

查看:210
本文介绍了代表“发送”电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经收到了很多代表的电子邮件。例如,AddThis插件从addThis.com代表myfriend@gmail.com发送电子邮件。

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 myfriend@gmail.com".

如何在C#/ ASP.NET中执行此操作?此外,如果我们使用Gmail将SMTP用于我们的公司域,那么这个工作是否正常?

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?

我也想知道是否有任何关于这个不专业或在客户端PC上被标记为垃圾邮件?换句话说,你们是否真的实现了这个...

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...

推荐答案

你有三个属性在 MailMessage 类:



  • 发件人

  • ReplyTo (或在.NET 4中 ReplyToList

  • From
  • Sender
  • ReplyTo (or in .NET 4 the ReplyToList)

如果您设置发件人不同于 From ,它应该按照你想要的行为。

If you set the Sender different than the From, it should behave as you want it.

另请参阅这个SO发布其他方面。

这篇关于代表“发送”电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆