我怎样才能在.NET实现VERP(可变信封返回路径)? [英] How can I implement VERP (Variable envelope return path) in .NET?

查看:129
本文介绍了我怎样才能在.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:

  1. 您将发送电子邮件至 someuser@somedomain.com
  2. 您生成一个GUID一个随机的唯一地址,例如:     F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4-customers@mydomain.com
  3. 您保持这种关联以上的地址地址字典或数据库表。
  4. 您收到一个反弹邮件到包罗万象收件箱,其中recepient是 F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4-客户@ MYDOMAIN .COM ,因此...
  5. 您废止 someuser@somedomain.com 在你的数据库。
  1. You will send an email to someuser@somedomain.com.
  2. You generate a random unique from address from a GUID, for example: F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4-customers@mydomain.com
  3. You keep a dictionary or database table that associates the from address above with the to address.
  4. You receive a bounce email to a catch-all inbox where the recepient is F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4-customers@mydomain.com, therefore...
  5. You invalidate someuser@somedomain.com in your DB.

这篇关于我怎样才能在.NET实现VERP(可变信封返回路径)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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