Could you share your SMTP setup with us?
Yes, for sure. Here is my SMTP configuration:
"mail": {
"transport": "Direct",
"options": {
"service": "Mailgun",
"host": "smtp.mailgun.org",
"port": 587,
"secure": true,
"auth": {
"user": "...",
"pass": "..."
}
}
}
To make sure there was no issue with the authentication password, I reset my SMTP user on Mailgun and tested again, but without success.
I conducted a test by removing the secure connection instruction and the port, and another by changing the port address to 25. In both cases, the returned error was:
Request was rejected due to server error
Set secure to false and it should work ![]()
Also have a look here. You can either use port 465 with "secure": true or add "requireTLS": true. Havenât tested it myself though.
I found where the error was. I checked my config.production and realized that instead of setting the 'transport' as 'SMTP', I had set it as 'Direct'. In previous versions, I wasnât facing issues, so I overlooked this detail. I corrected it, and transactional emails are working normally again.