I am creating an email list for a student organization at my university. The organization has about 6,000 members, and to avoid costs, I got permission to use the school's email servers, and they created an account for me.
I checked the account using my email client and everything works fine, but when I try to send through the Rails 4 application, I get an error message:
Net::SMTPAuthenticationError: 535 #5.7.0 Authentication failed
I configured it like this:
application.rb
config.action_mailer.smtp_settings = { :address => "smtp.school.edu", :port => 25, :enable_starttls_auto => true, :user_name => " account@school.edu ", :password => "mypassword", :authentication => 'login', :domain => 'http://myapp.herokuapp.com/' }
Again, the credentials are correct, I tested them through my mail client and also sat down with the server administrator to make sure everything looks right in my configuration to the port and credentials.
I was told that the smtp server is "wide open to the public" and nothing blocks the connection, and we checked their logs and they did not even see an attempt to connect from my application.
Does anyone know what is going wrong here? Is there some kind of setting that I don't know about that can be turned off?
source share