Hi all, I am using sentry on premise, I have configured smtp mail settings in config.yml. But when I am sending test mail its flashing error which I am attaching here. I am using following configurations for smtp.
mail.backend: 'smtp' # Use dummy if you want to disable email entirely
mail.host: 'smtp.gmail.com'
mail.port: 587
mail.username: 'my-mail@gmail.com'
mail.password: 'mail password'
mail.use-tls: true
# The email address to send on behalf of
mail.from: 'my-mail@gmail.com'
error while sending test mail![Screenshot 2021-01-06 at 5.32.40 PM|690x156]
Very likely that your password or username is incorrect even if “you are sure” they are correct. If you are using 2FA, you’d need to generate an app-specific password.
We know our SMTP integration works, and we also know it works with GMail as this is how I tested it myself so my best guess is you having some encoding or formatting issues when you are entering this information to your configuration file.