How to set the bounce address using System.Net.Mail?
- by Anthony
I'm trying to implement the Variable envelope return path (VERP) method to manage email addresses (ie when an email I send bounces back I want it to be sent to a specific email address so that I can update my database to avoid sending emails to that email address in the future).
According to this article it is possible to specify the email address a bounce email is sent to. How do you do this in .Net?
For example say I ([email protected]) want to send an email to you ([email protected]). If [email protected] doesn't exist anymore I want yourserver to send the bounce email to [email protected]). This way when I receive this bounced email I know that [email protected] is not a valid email address anymore and I can update my database accordingly.
In this example, the bounce address would be: [email protected]
How do you specify it using System.Net.Mail?