I am trying to send an activation email in development mode, i am using application.yml to enter my smtp credentials not sure what I am missing but for some reason i'm not able to send the activation email. here is the
application.yml
SMTP_PORT: 587
SMTP_DOMAIN: localhost:3000
SMTP_ADDRESS: smtp.gmail.com
SMTP_USERNAME: myemail@gmail.com
SMTP_PASSWORD: myemailpassword
SMTP_AUTHENTICATION: 'plain'
enable_starttls_auto: true
development.rb
config.action_mailer.raise_delivery_errors = false
config.action_mailer.delivery_method = :file
config.action_mailer.file_settings = { location: 'tmp/mails' }
config.action_mailer.default_url_options = { :host => ENV["URL_HOST"] }
token_mailer.rb
def activation(email, token)
@token_url = edit_activation_url token
mail to: email
end