我怎样才能在.NET实现VERP(可变信封返回路径)? [英] How can I implement VERP (Variable envelope return path) in .NET?
本文介绍了我怎样才能在.NET实现VERP(可变信封返回路径)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想implamant在.NET这种反弹的处理协议,但之后我研究升技我发现了附带.NET不支持VERP要求信封分配的基本类
I want to implamant this bounce handling protocol in .NET but after I researched abit I found out that the basic classes that come with .NET don't support envelope assignment required by VERP
有没有变通或者其他的方法?
Is there a work around or another method?
推荐答案
您绝对可以VERP使用实施 System.Net.Mail
,只是生成一个唯一的从
地址,每个到
地址,然后在消息反弹,你的包罗万象
电子邮件帐户将得到它,你就会知道什么到
地址无效。
You can definitely implement VERP using System.Net.Mail
, just generate a unique from
address for each to
address, then when the message bounces, your catch-all
email account will receive it and you will know what to
address to invalidate.
下面是一个一步一步的例子:
Here's a step-by-step example:
- 您将发送电子邮件至
someuser@somedomain.com
。 - 您生成一个GUID一个随机的唯一
从
地址,例如: F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4-customers@mydomain.com - 您保持这种关联以上的
到
地址从
地址字典或数据库表。李> - 您收到一个反弹邮件到
包罗万象
收件箱,其中recepient是F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4-客户@ MYDOMAIN .COM
,因此... - 您废止
someuser@somedomain.com
在你的数据库。
- You will send an email to
someuser@somedomain.com
. - You generate a random unique
from
address from a GUID, for example: F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4-customers@mydomain.com - You keep a dictionary or database table that associates the
from
address above with theto
address. - You receive a bounce email to a
catch-all
inbox where the recepient isF9168C5E-CEB2-4faa-B6BF-329BF39FA1E4-customers@mydomain.com
, therefore... - You invalidate
someuser@somedomain.com
in your DB.
这篇关于我怎样才能在.NET实现VERP(可变信封返回路径)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文