Connecting Tech Pros Worldwide Help | Site Map

Send email in Rails 2.0

  #1  
Old January 27th, 2009, 04:32 AM
Newbie
 
Join Date: Oct 2007
Posts: 19
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
Expand|Select|Wrap|Line Numbers
  1. require 'tlsmail'
  2. Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
  3.  
  4. ActionMailer::Base.delivery_method = :smtp
  5. ActionMailer::Base.server_settings = {
  6. :address => 'smtp.gmail.com',
  7. :tls => 'true',
  8. :port => 587,
  9. :domain => 'gmail.com',
  10. :authentication => :plain,
  11. :user_name => ' ',
  12. :password => ' '
  13. }
Thanks.

Regards,
amulyab

Last edited by eWish; January 28th, 2009 at 02:57 AM. Reason: Please use the code tags
  #2  
Old January 27th, 2009, 03:42 PM
Expert
 
Join Date: May 2007
Posts: 213

re: Send email in Rails 2.0


Google gave me these pages that might have some helpful info: link, link

Also, please use code tags when posting code in the future. They make the code stand out and make it easier to read.
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Send Email in Ruby amulyab answers 1 June 29th, 2008 10:55 PM
Complex database - having problems getting data updated rustyc answers 2 September 7th, 2007 07:02 PM
What do you want in a new web framework? emrahayanoglu@gmail.com answers 34 September 3rd, 2006 12:15 AM
JOB: Python Developer in Chicago, IL phredrik@gmail.com answers 0 August 2nd, 2006 11:05 PM