How to send e-mail from asp .net

It is containing all topics related to Visual Basic, .NET Framework, Web Resource, GDI etc.
Ladva Nidhi
Posts: 295
Joined: Sat Sep 20, 2014 5:26 pm

How to send e-mail from asp .net

Postby Ladva Nidhi » Thu Oct 16, 2014 6:51 pm

How do I send email message from ASP.NET?


Re: How to send e-mail from asp .net

Postby Guest » Thu Aug 06, 2015 5:43 am

First, you will need to import the System.Net.Mail namespace.

The System.Net.Mail namespace contains the SmtpClient and MailMessage Classes that we need in order to send the email.

We use the btnSubmit_Click event to do the work.

We then call the emailClient.Send to send the message using the variables from our ASP.NET coded page.

Return to “Visual Basic .NET and ASP.NET”

Who is online

Users browsing this forum: No registered users and 1 guest