Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SmptClient "direct replies to" option?

In Outlook, we have the "Direct replies to" option setting when we compose an email, which is used to override when recipient replies.

Is there any way to do the same through SmtpClient class in C#?

like image 837
Mahender Avatar asked Nov 23 '25 06:11

Mahender


1 Answers

There is a 'ReplyToList' property on the 'MailMessage' class. The ReplyTo is set on the message, not the SmtpClient

http://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.aspx

http://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.replytolist.aspx

like image 138
Glenn Ferrie Avatar answered Nov 24 '25 20:11

Glenn Ferrie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!