I am trying to set up a mailer to send myself notification methods. I am currently trying to get the mailer to send myself a simple message when I go to the URL `localhost:3000/send_mail`
I am currently getting this error:
Net::SMTPAuthenticationError in HomeController#send_mail
534-5.7.9 Application-specific password required
development.rb:
config.action_mailer.raise_delivery_errors = true
host = 'localhost:3000'
config.action_mailer.default_url_options = { host: host }
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
port: 587,
password: 'mypwd',
authentication: 'plain',
enable_starttls_auto: true }
routes:
match '/send_mail', to: "home#send_mail", via: "get"
home controller:
class HomeController < ApplicationController
def index
end
def send_mail
render nothing: true
end
end