电子邮件退回支持 [英] email bounce backing

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

问题描述

大家好,


用户无法将邮件发送到特定的电子邮件ID时,我需要设置回弹电子邮件.如何设置此设置.请帮帮我.
问候,
Shefeek

hi all,


I need to set a bounce back email when the user failed to send mail to a particular email id.How can set this.Please help me.
regards,
Shefeek

推荐答案

在您的邮件服务程序中,可以使用异常捕获邮件失败
In your mail service program, the mail failure can be captured using exception
MailAddress from, to;
try
{
	MailMessage mailMsg = new MailMessage();
	.........
	SmtpClient smtpClient = new SmtpClient("mailserver", port);
	smtpClient.Send(mailMsg);
}
catch (IOException ex)
{
	MailMessage mailMsg = new MailMessage();
	to = from;
	.........
	smtpClient.Send(mailMsg);	
}



显然,退回邮件通知可以到达原始发件人.



Apparently, the bouncing mail notification can reach the originator.


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

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