Help with - System.Diagnostics.Process.Start

J

JimJob

Hi All,

I am using c# to build an application (i know its not VBA but thought
someone may know the answer!). I want to open a new mail message with an
attachment. The new mail message works but I can't get the attachment to
work - there is no error message just no attachment. Any ideas? Code i am
using is;

System.Diagnostics.Process.Start("mailto:[email protected]?subject=Software&body=see attachment&attachment=c:/myview.mht");

Thanks
 
K

Ken Slovak - [MVP - Outlook]

Mailto doesn't support an attachment clause, take a look at the MS docs on
that. Use Outlook automation to add the attachment.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top