Mail not sending

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 :slight_smile:

Also have a look here. You can either use port 465 with "secure": true or add "requireTLS": true. Haven’t tested it myself though.

2 Likes

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.

1 Like