none
SMTP SERVER ISSUE (System.Net.Mail.SmtpException: Unable to connect to the remote server ##[error]PowerShell script completed with 1 errors.) RRS feed

  • Question

  • Hi,

    We are trying to run a power shell script which sends an email to the user , but when ever we tried to run the script from TFS ,We are getting an error message 

    System.Net.Mail.SmtpException: Unable to connect to the remote server
    2018-01-16T19:44:59.8713655Z ##[error]PowerShell script completed with 1 errors.
    • Moved by ArthurZ Friday, January 19, 2018 10:39 PM Not SSIS related
    • Moved by Bill_Stewart Monday, March 12, 2018 8:25 PM Unanswerable drive-by question
    Friday, January 19, 2018 10:28 PM

All replies

  • You have to use the correct fqdn and port.  The firewall must be open and the SMTP server must allow ad-hoc connections.  Most corporate servers do not allow SMTP connections.

    \_(ツ)_/

    Friday, January 19, 2018 11:34 PM