How can I send email from ASP.Net if SMTP Authentication is required for your Mail Server?

Our SMTP server requires authentication before you can send an email.
If your ASP or ASP.Net script is located on our Web Server, you don't need any SMTP Authentication to send an email.

Below is the code examples

    <smtp deliveryMethod="Network" from="your_email_address">
      <network enableSsl="false" host="your_smtp_host" port="587" userName="your_email_address"  password="your_email_address_password" />

You need a fairly clear reference depending on the SMTP email method and the website platform you are using.

Was this answer helpful?

 Print this Article

Also Read

How do I setup custom error for my application? has its own built-in error handling. To set up custom error handling for your

I receive an error when trying to access an ASP.NET page within a subweb. What do I do?

The ASPNet (user as which ASP.NET runs) user permission does not inherit into the subweb....

I get a database timeout expired error on my ASP.NET application. What can I do?

I get the following error when my ASP.NET application connects to the MS SQL server:...

How did I send email from ?

You have to use System.Web.Mail namespace Below is the code snippets : using System.Web.Mail;...

How do I connect my application to MySQL database?

In general, 2 different methods can be used to connect an application to MySQL database....