Adding SMTP alerts to TFS

I didn’t have the information about the email server before setting up TFS, but figured it would be easy to set up afterwards…. wrong 🙂

Well, actually it *is* easy, but just isn’t straightforward to find.

Find your TFS service web.config file.. on my machine it is here:

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

and add/adjust the following xml tags:

<appSettings>
<add key=”ConnectionString” value=”Application Name=TeamFoundation;Persist Security Info=False;Initial Catalog=TfsIntegration;Data Source=xxxxx;Integrated Security=SSPI”/>
<add key=”eventingEnabled” value=”true” />
<add key=”DetailedExceptions” value=”false” />
<add key=”emailNotificationFromAddress” value=”andrew@xxxxxxxxxxxxx.com” />
<add key=”smtpServer” value=”smtp.mailserver.xxxxxxxxxxxxx.com” />
<add key=”SmtpUserName” value=”MyDomain\MyUser” />
<add key=”SmtpPassword” value=”MySecurePassword” />
</appSettings>

Advertisements

2 thoughts on “Adding SMTP alerts to TFS

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