Configure Mail Settings in Web.Config

If you have a contact form that sends messages to email accounts, there is some extra configuration that you have to make so that it can work. In this article I will give give you a step-by-step guide on how to configure mail settings in Web.Config

Getting Started

1. Open your ASP.Net project.

2. Then open the Web.Config file of your project:

webconfig open asp tutorials

3. We are going to use three tag elements:

The <> element which contains the specifics on how the .net framework connect to the network.

The <mailSettings> element lets you configure mail sending options.

The <smtp> element lets you configure the delivery method and the email address.

4. Look for the <configuration> section:

configuration tag webconfig arvixe asp hosting

5. Add this code in the web.config file:

            <smtp from="">
                <network host="" 

webconfig mail settings asp iis windows hosting arvixe

6. Save your changes and that’s it! The email has been configured!

This concludes Configure Mail Settings in Web.Config

Looking for quality Windows Hosting? Look no further than Arvixe Web Hosting!

Happy Hosting!

Tags: , , , , , , , | Posted under ASP .NET 2, ASP .NET 3.5, DotNet/Windows Hosting, WebsitePanel Tutorials | RSS 2.0

Author Spotlight

Rodolfo Hernandez

I like photography and reading books. Currently working for Arvixe as Elgg Community Liaison. Elgg Security Expert Web Security Expert CEO of UDP SW Social Web

One Comment on Configure Mail Settings in Web.Config

  1. John Hill says:

    Keep getting this error.

    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Unrecognized attribute ‘enablessl’. Note that attribute names are case-sensitive.

    Source Error:

    Line 31:
    Line 32:
    Line 33:
    Line 34:
    Line 35:

Leave a Reply

Your email address will not be published. Required fields are marked *