Hey All,
I am sure there will be a really simple answer to this question, but here goes...
How do you call a new mail message from outlook to be pre populated with email address to send to and a body and subject?
Thanks in advance.
Printable View
Hey All,
I am sure there will be a really simple answer to this question, but here goes...
How do you call a new mail message from outlook to be pre populated with email address to send to and a body and subject?
Thanks in advance.
If you specifically want to use Outlook then you would have to use Office Automation, which is not simple. If you want to just use the user's default mail client then it is simple. You just construct the appropriate mailto URL and call Process.Start, e.g.That is equivalent to clicking on a mailto link in a web page. You can simply construct the URL to contain the parts you want. It's very easy to find information on how to do that on the web.vb.net Code:
Dim url = "mailto:[email protected]" Process.Start(url)
EDIT: E.g. this was the first result when I searched for "mailto url":
http://email.about.com/od/mailtoemai...o_elements.htm
Thats what I wanted to do, thats brilliant thanks for your help!