• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1849
  • Last Modified:

Mailto: Option using process.start c#.net

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?
0
wademi
Asked:
wademi
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now