Wednesday, August 01, 2007 - Posts

Adding an SMTP alerts server 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>