I am writing a application which need to open a new mail dialog, upon clicking on a button on it. Application users uses different mail clients like MS Outlook, Thunder Bird, etc…
Application should open a new mail dialog filled with information passed by my application, like TO, BCC, Subject and Body sometimes with attachments.
And there is a requirement to set the from address too.
Most important thing is mail format should be in HTML
if you want to send a mail programmatically in c#, C# is coming with “using System.Net.Mail” namespace. SmtpClient and MailMessage classes can do the work for you to explicitly send a mail configured with CC and BB and subjects settings by you.. .
For e.g;
Following is the Configuration settings for SMTP client that need to be done in the APP.config:
Note: you can define these values via code as well.
Hope it helps.