Hello,
I am using Rails 2.0 in which i want to send email.Where do i configure the gmail settings?If i add the settings in environment.rb file as older version,the application is not running.I am using tlsmail gem.Please help me to solve this.I need this setting to be added in rails 2.0
Thanks.
Regards,
amulyab
I am using Rails 2.0 in which i want to send email.Where do i configure the gmail settings?If i add the settings in environment.rb file as older version,the application is not running.I am using tlsmail gem.Please help me to solve this.I need this setting to be added in rails 2.0
Code:
require 'tlsmail' Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE) ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.server_settings = { :address => 'smtp.gmail.com', :tls => 'true', :port => 587, :domain => 'gmail.com', :authentication => :plain, :user_name => ' ', :password => ' ' }
Regards,
amulyab
Comment