Ask a questionAsk a question
 

AnswerTSWA can not send out email

  • Tuesday, September 15, 2009 9:41 AMKandV Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi:

    i just setup TFS 2008 and TSWA on client side, and trying to figure out how to send email from it. no matter how much i tried, i can not send out the email. i even try to configure it to gmail smtp server, but it still give me error of

    'Unable to connect to remote server'


    my TSWA web.config is configured as following:


      <webAccessSettings>
        <emailSettings sendingEmailEnabled="true" enableSsl="false" fromEmail="someone@gmail.com" smtpHost="smtp.gmail.com" smtpUsername="someone@gmail.com" smtpPassword="pwd" />
        <jscriptConfig>
          <add name="showBrowserToolbar" value="true" />
        </jscriptConfig>       
      </webAccessSettings>
      <system.net>
        <mailSettings>
          <smtp deliveryMethod="Network">
            <!-- Use default credentials -->
            <network port="465" />
          </smtp>
        </mailSettings>
      </system.net>


    anyone can help me with this?
    • Changed TypeKandV Wednesday, October 21, 2009 2:15 AM
    • Changed TypeKandV Wednesday, October 21, 2009 2:15 AM
    • Edited byKandV Wednesday, October 21, 2009 2:14 AM
    •  

Answers

  • Wednesday, October 21, 2009 5:07 PMHakan EskiciMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    For some reason, the SMTP server is rejecting the connection.

    One possibility is that your SMTP server is not recognizing the "From" address (TFSAdmin@localhost). You should be able to confirm this by trying it over telnet. Try changing the From address to something else that your SMTP server would recognize to see if it makes a difference.


    Hakan Eskici - MSFT

All Replies

  • Wednesday, September 16, 2009 10:19 AMHongye SunMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi KandV,

    The settings seems different with the following blog:
    http://web.iotap.com/Blogs/tabid/277/EntryId/39/Enabling-Email-Functionality-in-the-Team-System-Web-Access-TSWA.aspx

    Can you follow the instructions in the blog and let me know the result?

     

    Hongye Sun [MSFT]

    MSDN Subscriber Support in Forum

    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
  • Monday, September 21, 2009 4:23 PMHongye SunMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Are you still having this issue? Please let me know so that I know how to help.

     

    Hongye Sun [MSFT]

    MSDN Subscriber Support in Forum

    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
  • Tuesday, October 20, 2009 9:05 AMKandV Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I am sorry i dont really have time to look through this for recent weeks,yesterday i have tried it, but seems it still not working wiz me.

    let me describe my situation in more details to see if you guys can help me on this:


    My TFS server is located within my clients domain, TSWA is in the same box. i am abel to telnet to my client's smtp server and send out email. but when i filled my client's smtp server ip address into TSWA web.config. system keeps prompt me the error "Failure sending mail. Unable to read data from the transport connection: net_io_connectionclosed".

    following is the email part in web.config:

      <system.net>
        <mailSettings>
          <smtp deliveryMethod="Network" from="TFSAdmin@localhost">
            <network defaultCredentials="false" host="My Client's smtp server ip" password="my domain account pwd" port="25" userName="my domain account" />
          </smtp>
        </mailSettings>
      </system.net>


    is there any one have some suggestion?

  • Wednesday, October 21, 2009 5:07 PMHakan EskiciMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    For some reason, the SMTP server is rejecting the connection.

    One possibility is that your SMTP server is not recognizing the "From" address (TFSAdmin@localhost). You should be able to confirm this by trying it over telnet. Try changing the From address to something else that your SMTP server would recognize to see if it makes a difference.


    Hakan Eskici - MSFT