[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1806
  • 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

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

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