sending mail with attachment

  • Thread starter Thread starter DBC User
  • Start date Start date
D

DBC User

Hi All,

In one of my previous posting I got an answer on how to send a mail and
following is the code snippet

Process mailto = new Process();
mailto.StartInfo.FileName = "mailto:[email protected]";
mailto.Start();

I would like to know how can I attach a document in the above process?
Could someone help?

Thanks.
 
You can't. The mailto protocol doesn't accept attachments. You'll
have to use Simple MAPI, or the specialized Outlook/Exchange classes,
or directly communicate with the mail server.
 
Chris said:
You can't. The mailto protocol doesn't accept attachments. You'll
have to use Simple MAPI, or the specialized Outlook/Exchange classes,
or directly communicate with the mail server.

Is there a write up or code snippets available somewhere to use outlook
classes or Simple MAPI?
Thanks.
 

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

Back
Top