Send emails when build events fired
I try To use Project alerts to send emails every build to inform other about build details server doest not send any email although the related Event is fired i set the sender and smtp configurations correctly in web.config also i sent emails correctly using small .net application .
anyone have suggestions ?
thanks in advance
All Replies
Have you checked event viewer on the server to see if there is any error related to TFS events?
- Any follow up on this?
Patrick We are changing the issue type to “Comment” because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question”.
Hi Guys,
sorry For Late Follow up , because i was busy
I Checked Event Viewer and the following error is exist
TF53010: The following error has occurred in a Team Foundation component or extension:
Date (UTC): 20/07/1429 01:45:38 ?
Machine: VM32BIT04
Application Domain: /LM/W3SVC/1599685449/Root/Services-2-128612943192137554
Assembly: Microsoft.TeamFoundation.Server, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727
Process Details:
Process Name: w3wp
Process Id: 5812
Thread Id: 2392
Account name: HASIBDOMAIN\ms2008Detailed Message: TF50282: Could not connect to the following e-mail server: hasibex
Error message: System.Net.Mail.SmtpException: Mailbox unavailable. The server response was: 5.7.1 Client does not have permissions to send as this sender
at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from)
at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at Microsoft.TeamFoundation.Server.WebServiceNotification.SendOneEmail(Boolean plaintext, String to)For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
---------------------------------
many thanks
alaa yacoub
It seems like a problem with your Smtp server due to security restrictions, I would check with your system administrator to be able to relay emails with the user account you configured during the installation of TFS, but I'm not IT pro ...
Hi
please keep in mind that Account System (throught installation ) is ms2008
but the configuration in services/web.config for Smtp server is
<add key="emailNotificationFromAddress" value="alaa.yaqoub@hasib.com.sa" />
<add key="smtpServer" value="hasibex" />i Did not use Ms2008 in configuration
many thanks
Hi
please keep in mind that Account System (throught installation ) is ms2008
but the configuration in services/web.config for Smtp server is
<add key="emailNotificationFromAddress" value="alaa.yaqoub@hasib.com.sa" />
<add key="smtpServer" value="hasibex" />i Did not use Ms2008 in configuration , alaa.yaqoub@hasib.com.sa is work fine
many thanks
Hi Guys
Finally i Found The Solution
when i back to Administrator we found that my Pc does not have the permission to use Smtp server to send mail
to solve this we did the following :
1- open IIS
2- go to Default Smtp
3- right click select peoperties
4 select Access Tab
5 - Click on Connection Buttion and Add your Pc (which contain TFS server)
6- Click on Relay Button and grant permisstion for Pc
thanks for every one give asuggetion
when i back to Administrator we found that my Pc does not have the permission to use Smtp server to send mail
to solve this we did the following :
1- open IIS
2- go to Default Smtp
3- right click select peoperties
4 select Access Tab
5 - Click on Connection Buttion and Add your Pc (which contain TFS server)
6- Click on Relay Button and grant permisstion for Pc
Thanks to all


