Ruby/Rails Actionmailer Not Working with Ntlm

ActionMailer with NTLM auth (Exchange 2010)

So I found the solution myself. I kept getting this error because the Exchange server I use requires no authentication, so you should not pass any authentication option at all:

config.action_mailer.smtp_settings = {
address: 'smtp.yourdomain.com',
port: 587,
domain: 'yourdomain.com'
}

Yes thats right: user_name, passwod and authentication are left out.

ActionMailer not sending mail in development Rails 4

You should add

config.action_mailer.perform_deliveries = true

as by default this is on false, preventing mails to be sent from your development environment...



Related Topics



Leave a reply



Submit