Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Team Foundation
 How to: Configure SMTP Server and E...
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual Studio Team System
How to: Configure SMTP Server and E-mail Notification Settings in the Services Web.Config File

You can configure Team Foundation Server to use an existing SMTP server to send e-mail alerts. Users can configure alerts for various project, work item, and build event notifications. Although you can specify the SMTP server during Team Foundation Server installation, you might want to change the STMP server later. Similarly, if you to change the application pool service account by using the TFSAdminUtil ChangeAccount command, you must manually change the sender account e-mail address to the new service account's e-mail address.

NoteNote

The content of Team Foundation Server alert e-mails is not customizable. The content of the e-mails is automatically generated from the TeamFoundation.xsl file. Modifying this file is not recommended. If you do modify the contents of this file, be sure to thoroughly test your modifications. Incorrect modifications of this file can result in the failure of Team Foundation Server e-mail alerts and the inability to view Team Foundation work items, changesets, or files in a Web browser.

Required Permissions

To perform this procedure, you must be a member of the Administrators group on the Team Foundation application-tier server. For more information, see Team Foundation Server Permissions.

NoteNote

Do not use the ASP.NET tab of the Internet Information Services (IIS) Manager (inetmgr) to edit a configuration file. If you use this tab, an attribute is added to the configuration element of the configuration file. This attribute interferes with normal functioning.

To designate or change the SMTP server for sending e-mail alerts

  1. On the application-tier server for Team Foundation, locate the installation directory for the application tier.

  2. Open the Web Services directory, and then open the Services subdirectory.

  3. In a text or XML editor, open the Web.Config file, and locate the <add key="smtpServer"> element.

  4. Update the element by typing the fully qualified domain name of the SMTP server. For example, type the following string:

    <add key="smtpServer" value="SMTPServerLocation" />
  5. Save and close the Web.Config file.

    You must close and restart the Web services application for Team Foundation before your changes will take effect.

To designate or change the sender e-mail address for e-mail alerts

  1. On the application-tier server for Team Foundation, locate the installation directory for the application tier.

  2. Open the Web Services directory, and then open the Services subdirectory.

  3. In a text or XML editor, open the Web.Config file, and locate the <add key="emailNotificationFromAddress"> element.

  4. Update the element by typing the e-mail address that is associated with the service account (for example, Domain/TFSService). that is used for the application pool identity for Team Foundation. For example, type the following string:

    <add key="emailNotificationFromAddress" value="TFSService@domain.com" />
  5. Save and close the file.

    You must close and restart the Web services application for Team Foundation before your changes will take effect.

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Web.Config files to be updated      El Bruno   |   Edit   |  
The following files must be modified in order to setup smtp mail configuration

- C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\EmailNotify\web.config

- C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\Services\web.config

- C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\web.config

Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker