I have an Office 365 mail account with Godaddy. I'm trying to setup the SMTP settings for my Rails app:
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => "smtp.office365.com",
:port => 587,
:user_name => ENV["OFFICE_USERNAME"],
:password => ENV["OFFICE_PASSWORD"],
:authentication => 'login',
:domain => 'example.com',
:enable_starttls_auto => true }
but when I test those settings by submitting a message from my contact page, I get this error message:
550 5.7.1 Client does not have permissions to send as this sender
How to set up the SMTP settings for an Office 365 account in a Rails application?