azure-devops-engineering-extensions
azure-devops-engineering-extensions copied to clipboard
facing error MailError: Error: getaddrinfo ENOTFOUND smtphost.***.corp.***.com in release build
Trying to send mail with smtp service connection in release build and getting below error
Using HostName: smtphost.***.com and port: 587 2020-03-24T22:19:44.1030554Z MailError: Error: getaddrinfo ENOTFOUND
P.S. same connection works fine in Build.
Most likely the agent in question cannot access "smtphost**" Was the release agent a Hosted agent?
@saikrishnav @LeahSchwartz I have the same problem. I use an agent job, in a release pipeline. The smtp URL, the port, username and password are correct. Still, I get an error: MailError: Error: getaddrinfo ENOTFOUND

@saikrishnav @LeahSchwartz I have the same problem. I use an agent job, in a release pipeline. The smtp URL, the port, username and password are correct. Still, I get an error: MailError: Error: getaddrinfo ENOTFOUND
Hi did you get answer to this? I am getting same error, how to resolve?
Same problem in local testing. Would appreciate an update.