Question:
I get this error when sending mail:
SendEmail:
SMTP_Connect:
Connecting to SMTP server mailgateway.****.com:25
smtp_host: mailgateway.****.com
smtp_port: 25
smtp_user: ****
trying_auth_method: LOGIN
login_method: LOGIN
503 Error: authentication not enabled
Failed to send AUTH LOGIN
220 ****.****.com ESMTP
250- ****.****.com
250-PIPELINING
250-SIZE 16384000
250-ETRN
250 8BITMIME
AUTH LOGIN
503 Error: authentication not enabled
Failed to login using LOGIN method
Failed to connect to SMTP server.
Answer:
It looks like the SMTP server does not need (nor want) authentication.
Try *not* setting the SmtpUsername and SmtpPassword properties.
Be sure to test sending email addresses external to "****.com" because
sometimes SMTP servers require authentication when sending to external addresses,
but not when sending internally.