How to Send Messages with Read Confirmation Using SmtpClient in .NET

If you need to send an email message and request a confirmation (receipt) from the reader of the message and you intend to use the SmptClient class of Microsoft .NET Framework, you will need to set a custom header on the MailMessage object before sending it, as shown below (C# code):

MailMessage mailMessage = new MailMessage();
//…
mailMessage.Headers.Add("Disposition-Notification-To", “youremail@domain.com”);
SmtpClient.Send(mailMessage);

About Sorin Dolha

My passion is software development, but I also like physics.
This entry was posted in Computers and Internet. Bookmark the permalink.

Add a reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s