SHARE
TWEET

Untitled

a guest Jan 19th, 2019 506 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using Outlook = Microsoft.Office.Interop.Outlook;
  2. protected void SendEmailBtn_Click(object sender, EventArgs e)
  3.         {
  4.             Outlook.Application OutlookApp = new Outlook.Application();
  5.             Outlook.MailItem mailItem = (Outlook.MailItem)OutlookApp.CreateItem(Outlook.OlItemType.olMailItem);
  6.             mailItem.Subject = "Test Send Email";
  7.             mailItem.BCC = "test@test.com";
  8.             mailItem.Body = "Dear";
  9.             mailItem.Display(false);
  10.         }
  11.    
  12. <a href="mailto:?bcc=test@test.com&subject=Test+Send+Email&body=Dear">My Hyperlink</a>
  13.    
  14. System.Diagnostics.Process.Start("mailto:?bcc=test@test.com&subject=Test+Send+Email&body=Dear");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top