代表电子邮件显示 [英] email displaying on behalf of

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

问题描述

Hello All,



当我从任何地址发送电子邮件然后在Outlook中它会添加如下:



test_address=gmail.com@test.com;代表; test_address@gmail.com



当邮件发送到gmail然后通过test.com看起来好像是

test_address@gmail.com



test.com是我用c#发送邮件的smtp服务器。



所以你能来吗请帮助我只发送邮件中的电子邮件地址,而不是代表或通过。



谢谢。



[edit]更改了电子邮件地址的用户名以使其更安全 - Nelek [/ edit]

Hello All,

when I am sending email from any address then in outlook it will adding like:

test_address=gmail.com@test.com; on behalf of; test_address@gmail.com

and when mail is send to a gmail then it looks like
test_address@gmail.com via test.com

test.com is smtp server from where i am sending mails with c#.

so can you please help me to only include email address in sending mail and no other like 'on behalf of' or 'via'.

Thanks.

[edit] Changed username of email-address to make it safer - Nelek[/edit]

推荐答案

代表当FROM和SENDER电子邮件标题不同时,某些电子邮件客户端(包括MS Outlook)会插入。所以你基本上得到:



FROM:< sender address>代表<从地址>



所以你想做的是这样的:



The "on behalf of" thing is inserted by certain email clients (including MS outlook) when the "FROM" and "SENDER" email headers are different. So you basically get:

FROM: <sender address> on behalf of <from address>

So what you want to do is something like this:

MailMessage myMessage = new MailMessage();

myMessage.From = "youname@domain.com";

myMessage.Sender = "someone@domain.com";



请注意,这两个电子邮件标题字段在电子邮件中的显示方式取决于电子邮件客户端。


Just note that how those two email header fields are displayed in the email message depends on the email client.


fghfghg


你自己去gmail设置并从电子邮件帐户导入并写下它正在运行的代码
you van go gmail setting and import from as email account and write the code it is working


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

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