2
I’m making a console that sends emails.
I need the emails sent with error to return to another email (other than the one sent).
I managed to set the ReturnPath
in the header email, but it didn’t work.
I’m using the library: System.Net.Mail
.
Creation of my e-mail message:
Note that the Return-Path
changed, and is different from the email you sent.
E-mail you sent:
I tried to put right into the header, but then the Return-Path
neither changes.
mail.Headers.Add("Return-Path", "[email protected]");
So... I tried to use it already, but this way it doesn’t even change in the details of the message...
– Marccus Zavadzki
But it’s the only way, it may be that you’re doing something wrong that’s affecting.
– Maniero