Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending SMTP Mail in .Net 2.0
Message
De
20/08/2005 07:14:46
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
19/08/2005 18:13:24
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01042429
Message ID:
01042469
Vues:
23
>I'm having problems sending SMTP mail using .Net 2.0. Has anyone done this? Note that this has completely changed in 2.0 compared to previous versions.

I haven't done myself and 2.0 is installed on home computer. However I came across this at:
http://msdn.microsoft.com/coding4fun/coolapplications/sysmonitor/default.aspx

Excerpt from page as is:
"
Improved SMTP support
Simple SMTP support in previous versions of the .NET Framework was dismal. IIS was required, as was its SMTP component, which was no picnic to correctly configure. I stumbled upon the new SMTP support recently and it was a wonderful surprise. The snippet below just works. No configuration necessary!



SmtpClient mailClient = new SmtpClient();

mailClient.Host = _host;

mailClient.Send(_to, _from, title, message);

"
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform