Here Mudassar Ahmed Khan has explained with an example, how to send email in ASP.Net using C# and VB.Net.
The SMTP Mail settings are stored in the mailSettings sub-section of the system.net section of the Web.Config file.
The SmtpSection class of the System.Net.Configuration namespace is used to read the SMTP Mail settings from Web.Config file in ASP.Net using C# and VB.Net.
↧