Mailto: Option using process.start

Posted on 2009-02-17
Last Modified: 2012-05-06
I have a 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?
Question by:wademi
    1 Comment
    LVL 69

    Accepted Solution

    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:

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now