退回电子邮件到特定的电子邮件ID [英] Bounce back emails to specific email id

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

问题描述

你好朋友,
你好吗?
这是我的问题:

我们可以将退回"电子邮件发送到特定的电子邮件ID(而不是电子邮件ID)吗?

我正在将邮件发送到电子邮件地址''test@test.com''
其参数来自:''dddd@gmail.com''
消息:此处的消息"

假设电子邮件test@test.com不存在,则在电子邮件地址dddd@gmail.com上(来自电子邮件地址),发送到test@test.com的电子邮件的退回邮件失败...等. />
我的要求是我希望将退回电子邮件发送到"bounce@gmail.com",而不是"dddd@gmail.com".

有帮助吗?

Hello friends,
How r u?
here is my problem:

can we send Bounce back emails to specific email id (other than from email id)?

i''m sending mail to an email address ''test@test.com''
with parameters from:''dddd@gmail.com''
Msg: ''message here''

suppose email test@test.com doesn''t exists then on email address dddd@gmail.com (From email address) a bounce-back mail that email sent to test@test.com fails...etc.etc.

My requirement is i want that bounceback email to ''bounce@gmail.com'' instead of ''dddd@gmail.com''.

Any help?

thanks in advance.

推荐答案

在这种情况下,RCPT方法是最好的方法,
在这里您可以获得一些代码:单击此处 [ http://stackoverflow.com/Questions/565504/how-to-check-if-an-email-address-exists-without-send-send-an-email [ ^ ]

http://stackoverflow.com/questions/7246341/how-check-a-validated-email-exist-or-not-without-sending-test-email-by-c-sharp-c [ http://stackoverflow.com/questions/3883518/can-i-check-if-an-email-address-exists-using-net [
In this case;RCPT method is the best one,
Here you can get some code :Click here[^]

The class is quite heavy, you will have to pick the code snippet you need from the source code.

Also have a look on following threads:

http://stackoverflow.com/questions/565504/how-to-check-if-an-email-address-exists-without-sending-an-email[^]

http://stackoverflow.com/questions/7246341/how-check-a-validated-email-exist-or-not-without-sending-test-email-by-c-sharp-c[^]

http://stackoverflow.com/questions/3883518/can-i-check-if-an-email-address-exists-using-net[^]


使用

尝试将catch块中的catch设置为MailMessage类,并将Sender属性设置为''bounce@gmail.com".

尝试.....
Use

try catch in catch block set MailMessage class set Sender property to "''bounce@gmail.com".

Try.....


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

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