Reputation: 5507
I am facing lot of issues with my current email system that being implemented in our application. There are lot of emails that are going out of the application and bounces back. Here my Return-Path set is by default which is the from address.
How can i set Return-Path to [email protected]? I tried to set the same in the headers, but it does not work.
Any ideas?
Upvotes: 1
Views: 2598
Reputation: 3990
I think that what you want to do is set both the Sender and the From properties on the MailMessage object. The Sender property should be the address where you want bounce messages and the From property should be the address where you want the messages to appear from (in the case of successful delivery).
Upvotes: 1