View Single Post
  #6 (permalink)  
Old April 16th, 2010, 11:43 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,019, Level: 100
Points: 72,019, Level: 100 Points: 72,019, Level: 100 Points: 72,019, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,075
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

You have posted this in the forum for Beginning ASP.NET 4 so I assumed, silly me, you were using that book ;-)

You may want to take a look here: http://imar.spaanjaars.com/QuickDocId.aspx?QUICKDOC=505

In .NET 3.5, you manually need to create an SmtpClient and set the EnableSsl property to true as explained in that article. In .NET 4 you can do this declaratively in the web.config file.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote