We help IT Professionals succeed at work.

Mailto: Option using process.start c#.net

Medium Priority
2,069 Views
Last Modified: 2012-05-06
I have a c#.net application that I use the follwoing sytax to launch a Micrsoft Outlook mail merge document  >>>Process.Start(@"C:\Ama\Templates\NILM.doc");. This opens an outlook new email and merge some data from my database in the body. The problem is I cannot extract an email adrress and include it as a merge filed in the To: box of the document.
I can do this seperately though>>>System.Diagnostics.Process.Start("mailto:" + email address);
And this will open an outlook email window and populate the To: box with an address

How do I integrate the two syntax? Process.Start(@"C:\Ama\Templates\NILM.doc");.
System.Diagnostics.Process.Start("mailto:" + email address) so that NILM.doc is opened with the to address plus the body is populated with data?
Comment
Watch Question

Senior .Net Consultant
CERTIFIED EXPERT
Top Expert 2016
Commented:
this cannot be done. the mailto protocol does not support that.

instead of using Outlook, you can use pure .Net objects to send e-mails: http://www.emoreau.com/Entries/Articles/2007/09/Using-SystemNetMail.aspx

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.