error send email

error when send email, but on localhost is safe.
this is for the logs

image

Are you using an AWS SDK to send the mail, or built your own call, passing it a hostname value?

Only from that error, it kind of looks like the hostname is invalid … which would explain the ENOTFOUND error. The hostname shown has \r on the end, a carriage return.

I would suggest double-checking your code to check the hostname does not have any whitespace after it.

2 Likes

Did you figure this out? That \r on the end of the hostname definitely looks like a problem.

2 Likes