First post on SO I have set up a basic contact form using actionmailer which I had working perfectly with gmail. I then set up a private email with Namecheap and then implemented the relevant details. Unfortunately, no emails send and I get an authentication error.
535 5.7.8 Error: authentication failed:
My setup is as follows
ActionMailer::Base.smtp_settings = {
address: 'mail.privateemail.com.',
port: 587,
domain: 'domain_name',
user_name: ENV['NAMECHEAP_EMAIL'],
password: ENV['NAMECHEAP_PASSWORD'],
authentication: :plain,
enable_starttls_auto: true
}
Thank you in advance
For anyone who stumbles across this post. The code above is actually correct. I had a misspelling in the password I was serving to namecheap. Settings work like a charm.