Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending SMTP Mail in .Net 2.0
Message
From
20/08/2005 07:14:46
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
19/08/2005 18:13:24
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01042429
Message ID:
01042469
Views:
24
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform