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

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 do I configure my ASP.NET 3.5 Framework?

To configure your ASP.NET3.5 Framework, it is pretty easy via our control panel. For Old In...

How did I send email from ?

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

I couldn't see any Error Message on my ASPX Page? What should I do?

This happens because of the web.config custom Error page is set to RemoteOnly or On. If you...

Disable Web Config inheritance for Virtual Application

If you have a lot of virtual applications under your webisteYou can Disable the main website's...