Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #mailer.rb
- ActionMailer::Base.delivery_method = :smtp
- ActionMailer::Base.default_charset = 'utf-8'
- ActionMailer::Base.default_content_type = 'text/html'
- # Don't care if the mailer can't send
- ActionMailer::Base.raise_delivery_errors = true
- require "tlsmail"
- Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
- ActionMailer::Base.smtp_settings = {
- :address => "smtp.gmail.com",
- :port => 587,
- :domain => "gmail.es",
- :user_name => "reperezz",
- :password => "mypassword",
- :authentication => :plain
- }
Add Comment
Please, Sign In to add comment