How to change the SMTP server name and the email address after an installation of Team Foundation Server?

One of our customers asked me whether we can change the SMTP server name and the email address after an installation of Team Foundation Server. I started to investigate around the folders that are created as part of an installation of Team Foundation Server. I discovered the details are actually stored in a Web.config file. The following are the steps to change the SMTP server name and the email address after an installation of Team Foundation Server:
 
1. Navigate to:
 
Note:
*  For Team Foundation Server 2005 : C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\Services
*  For Team Foundation Server 2008 : C:\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Web Services\Services
 
2. Open the web.config file
 
3. Modify the following keys "emailNotificationFromAddress" and "smtpServer" (refer to the texts in bold and italic). For example,
 
<appSettings>
<add key="ConnectionString" value="Application Name=TeamFoundation;Persist Security Info=False;Initial Catalog=TfsIntegration;Data Source=TFSServerName;Integrated Security=SSPI"/>
    <add key="eventingEnabled" value="true" />
    <add key="DetailedExceptions" value="true" />
    <add key="emailNotificationFromAddress" value="Sender Email Address" />
    <add key="smtpServer" value="SMTP Server Name" />
</appSettings>
 
Good luck!
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: