Click here to Skip to main content
14,699,719 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone!
I need to send email from my application, with attachment, using the default email client (so user could could choose address from his address book)

I am using code:

Process.Start(" &body=" & "Body of my message"

But I can not add attachments.
Please help.


What I have tried:

Used SendToVB (
System.Diagnostics.Process.Start("SendToVB -to -file D:\Test.pdf")

It says "
The system cannot find the file specified

Tried MAPI (but it says Type MAPI is not defined)
Updated 4-May-20 1:26am
Richard MacCutchan 8-Oct-18 4:11am
The error message seems clear enough.
Furqan Sehgal 8-Oct-18 4:26am
But how to fix it?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900