I configured mailing as below:
config.action_mailer.smtp_settings = {
address: 'smtp.gmail.com',
domain: 'gmail.com',
port: 587,
user_name: ENV['EMAIL_USERNAME'],
password: ENV['EMAIL_PASSWORD'],
authentication: 'plain'
}
Moreover, my from
value matches the user_name
.
Despite that, all my emails goes to spam, is there a way to avoid this behaviour?