What SMTP Settings Should I Use in web.config file?

In web.config SMTP settings, you can use your existing email address (whose authentication you want to use), password and appropriate port number. Following is a sample code to show the web.config SMTP settings:

    <smtp deliveryMethod="Network" from="username@domain.com">
<network defaultCredentials="false" host="mail.domain.com Or SMTP server IP" port="25 Or 587" userName="full-email-address" password="xxxxxxxxxxxx" />

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to Configure Passive Port Range for the FTP Service in IIS?

Following article will assist you to configure passive range for FTP service in IIS web server....

How to create an FTP account from IIS in Windows Server 2003?

This article will guide you on how to create an FTP account in Windows Server 2003 from IIS. For...

How to change ASP session timeout from IIS 7?

Sessions are used to maintain a stateful HTTP connection. When session state is enabled for your...

How to import SSL certificate in Windows server?

To import SSL Certificate in Windows Server, firstly, you need to export the SSL certificate....

Fix :: Operation must use an updateable query." for ASP pages

Problem Statement Operation must use an updateable query." for ASP pages Cause There might be...