How add Send-To mail to a WinForms app?

  • Thread starter Thread starter Ed Sutton
  • Start date Start date
E

Ed Sutton

I have a WinForms application. I want to add a "Send File as Attachment"
feature. Something like how the PowerToys "Send-To Mail Recipient" works.

I keep seeing samples referencing the namespace "System.Web.Mail" which I
can not seem to add or use in my application.

What's the easiest way to do this?

Thanks in advance,

-Ed Sutton
 
What's the easiest way to do this?

Also, I need to support Win98 and up. I am looking for something that does
not complicate the install.

-Ed
 
You need to add a reference to System.Web.Mail which, if you choose
Projects->Add Reference-> .NET -> just sort on the left hand column and go
down to the 'S', you'll see it there.

Hth,

Bill
 
Thanks Bill!
You need to add a reference to System.Web.Mail which, if you choose
Projects->Add Reference-> .NET -> just sort on the left hand column
and go down to the 'S', you'll see it there.

I was confused (as usual). I thought that System.Web.Mail was an obsolete
namesapce from the DotNet beta.

-Ed
 
Does anyone know how the PowerToys SendTo "Mail Recipient" works?

I like the way this brings up your Outlook mail client and gives you a
chance to review things before you finally press the Send button.

Thanks again Bill. Using SmtpMail.Send(MailMessage) is very straighforward.

-Ed
 
Back
Top