Guest User

Untitled

a guest
Jan 19th, 2019
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  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");
Add Comment
Please, Sign In to add comment