Send email to default mail client

  • Thread starter Thread starter runningdog
  • Start date Start date
R

runningdog

Hi

Can someone point me to some documentation on how to create and send email
from a win forms app using the defalt mail client

TIA Steve
 
System.Web.Mail namespace contains what you need to send emails. It does not
use the default mail client to send them (your mails won't appear in the
sent items, for example), and it does require an SMTP service (either the
standard one installed locally, or one specified).

I dont beleive that there is a standard way to drive just any mail client,
becuase there are dozens of them out there, although there are differing
ways to drive differing clients.

Nick Holmes.
 
I thought driving an email client might be an issue so I was hoping there
might be a library to format and write .eml file.

I couldn't find System.Web.Mail, I have imported System.Web but .Mail just
doesn't seem to be there. Is this because I am in a winforms app?

Steve
 
You need in reference the System.Web.dll. There is no reason why you can use
this from a WinForms application.

Nick.
 
Thanks I must have had my dim glasses on yesterday! It is right there where
I said it wasn't.
 
Back
Top