Hi,

I am in the process of developing an application wherein I want to add a
functionality: The moment the user presses submit, the application should
connect to an SMTP server and send out a preformed mail message to a
prespecified target email address. I know that raw SMTP commands such as
RCPT, MAILTO, etc. should be used - but am unaware of the exact syntax.

Any help would be appreciated.

Thanks,
Nitin

MS-MBA
Boston University

Re: Email from a Windows Form by Herfried

Herfried
Mon Sep 15 07:42:33 CDT 2003

Hello,

"Nitin Agarwal" <nagarwal@bu.edu> schrieb:
> I am in the process of developing an application wherein
> I want to add a functionality: The moment the user
> presses submit, the application should connect to an
> SMTP server and send out a preformed mail message
> to a prespecified target email address.

Have a look at the classes in the 'System.Web.Mail' namespace.

How-to: Send E-mail
http://msdn.microsoft.com/library/en-us/dnvssamp/html/vbcs_SendMail.asp

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet