email sending (priority, reply to, read notification)

Usually web developers need to write code for sending email (me 2 :P) but normally we just setup To,From, Subject, Body and login credentials and simply call Send() method ;), what if our boss ask for such features like he want our Emails Should be at HIGH priority (no matter either they deserve or not :D) and he wants set up Reply-To email id should be of Him (boss) and should also get Read Notification (in case of email is being sending to employee so he wont lie that he dind’t get/read email :D)  anyhow jokes apart… lets code

in we create instance MailMessage instance …

dim mailMsg as new MailMessage(fromEmailID, ToEmailID)

mailMsg.Subject = “testing…”

mailMsg.Body =  “always do charity :D”

mailMsg.Priority = MailPriority.High

mailMsg.ReplyTo = New MailAddress(“Enter your desired Reply To Email ID”)

mailMsg.Headers.Add(“Disposition-Notification-to”, “Send Read Receipt Email ID")

is it complex 😀


Leave a Reply

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

You are commenting using your 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