Paul Hacker's Blog

Musings from a "Hacker"
posts - 21, comments - 29, trackbacks - 22

My Links

News



Archives

Configure SMTP after Team Foundation Install

When I initially installed the Team Foundation Server RC I did not configure the SMTP server at that time. I have since wanted to go back and set up Project Alerts, but I was unsure where to modify the settings to get this to work. I search the internet for a bit and to my suprise I found no information on this. Now maybe I was not searching with the correct criteria :-), but I thought that I would get something back that would help me to figure this out, or at least guide me in the right direction. I figured that the setting had to live in a config file somewhere on the Team Foundation Server, so I decided that I would dig around and see what I could find. What do you know, I found it!

So, if you have installed TFS and have not configured your SMTP server, you may do so as follows:

  • On the Team Foundation Server box, navigate to: C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\Services. If you have it on a drive other than C:\, besure to change this.
  • Open the web.config file
  • Modify the following keys in Red

  <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="Senders Email Address" />
    <add key="smtpServer" value="Your SMTP Server Name" />
  </appSettings>

By default, the smtpServer key value will be the name of your Team Foundation Server. be sure you enter a valid SMTP server name and a valid email address for the sender.

  •  Fire up VS2005 and set up a Project Alert if you have not done so already.
  • Cause a change that should fire of an email and check you email to see the results.

It took a few minutes, but I finally started to get the emails coming in.

Hope this helps

pjhacker

Print | posted on Friday, March 17, 2006 11:15 AM |

Feedback

Gravatar

# VSTS Links - 03/20/2006

Jeff Beehler says Team Foundation Server Ships! And so does John Lawrence, complete with a picture of...
3/20/2006 6:15 AM | Team System News
Gravatar

# TFS 在安装的时候没有设置SMTP邮件服务器,现在想用,该怎么设置呢?

TFS ??????????SMTP?????,
????,?????????WebConfig
3/16/2007 12:26 AM | xiaotao
Gravatar

# re: Configure SMTP after Team Foundation Install

Thanks for the post, this was very helpful
8/28/2007 1:28 PM | Michael Knopf
Gravatar

# re: Configure SMTP after Team Foundation Install

Thank you for this post!
12/21/2007 2:18 AM | Daniel
Gravatar

# re: Configure SMTP after Team Foundation Install

Very helpful. Thank you for posting this.
1/31/2008 11:31 AM | Chris
Gravatar

# re: Configure SMTP after Team Foundation Install

Thank you! Was very helpful to me too :)
5/12/2008 10:16 PM | Upuli
Gravatar

# re: Configure SMTP after Team Foundation Install

A non-refundable application fee is required at the time of the District Interview.
11/21/2008 7:36 AM | rugs
Gravatar

# wow godl

Folks who closely follow the process wow goldon a pardon for former California Rep. Randy "Duke" Cunninghamwow goldwho was convicted and is serving a sentence
11/25/2008 5:41 PM | yangkee
Gravatar

# dofus kamas

In the "Shuanglong crisis" in the incident has been playingwow goldthe vanwow goldguard role of the South Korean
2/6/2009 2:22 AM | dofus kams
Gravatar

# re: Configure SMTP after Team Foundation Install

welcome to the Rom Gold, in here you can buy the Runes of Magic Gold
2/7/2009 2:33 AM | Rom Gold
Gravatar

# re: Configure SMTP after Team Foundation Install

Hi,Paul
we use exchange as our mail server, any conments, it doesn't work if I just add the exchange server name in the "smtp" value. Then I set up smpt service on tfs server, and change the web.config fie again which point to smtp on tfs.....still doesnot work :(
2/19/2009 11:13 PM | simpyp
Gravatar

# re: Configure SMTP after Team Foundation Install

Was useful for me;
thank you
3/11/2009 4:44 AM | mahmoud alam
Gravatar

# re: Configure SMTP after Team Foundation Install

Thanks,
Good info!!
4/6/2009 3:49 AM | C
Gravatar

# google story

The biggest surprise on a busy night of international wow gold
4/16/2009 6:15 AM | google
Gravatar

# re: Configure SMTP after Team Foundation Install

DO you need to have the smtp server on the same machine the tfs is installed for it to work..?.
4/17/2009 2:58 PM | Alex
Gravatar

# re: Configure SMTP after Team Foundation Install

Does not work for me at all..Am using TFS workgroup edition and on a virtual server..Any clues why
4/28/2009 1:31 PM | Alex
Gravatar

# wow gold

Very grateful to my motherwow goldbecause I too enjoy the quiet with my friends
5/27/2009 7:01 AM | jing
Gravatar

# re: Configure SMTP after Team Foundation Install

Very grateful to my motherwow goldbecause I too enjoy the quiet with my friends
6/5/2009 9:44 PM | aion gold
Gravatar

# re: Configure SMTP after Team Foundation Install

i think it is good
6/28/2009 11:27 PM | cheap mesos

Post Comment

Title  
Name  
Email
Url
Comment   

Powered by: