require 'smtp_tls' ActionMailer::Base.raise_delivery_errors = true ActionMailer::Base.perform_deliveries = true ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => "587", :domain => "domain.com", :authentication => :plain, :user_name => "m...@domain.com", :password => "password" }
That is my environment.rb configuration to work with an account with gmail. I have my domain to use gmail as the mail service and i don't use the line: Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE) ___________________ Agustin Viñao www.agustinvinao.com agustinvinao (Skype) On Sat, Apr 18, 2009 at 9:17 PM, tashfeen.ekram <tashfeen.ek...@gmail.com>wrote: > > i just tried to configure to use gmail with the tlsmail gem. i seem to > be getting the same time out error. is there something wrong in my > config. i have tried configuring it to several different inclugin > sendmail and postifx on my laptop, i installed mailtrap plugin, and > now gmail and all give me the same error. really strange.... > > > config for gmail: > > > require 'tlsmail' > > Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE) > > > > ActionMailer::Base.raise_delivery_errors = true > > ActionMailer::Base.perform_deliveries = true > > ActionMailer::Base.delivery_method = :smtp > > ActionMailer::Base.smtp_settings = { > > :address => 'smtp.gmail.com', > > :port => 587, > > :tls => true, > > :domain => 'xxxx.com', > > :authentication => :plain, > > :user_name => 'xxxx', > > :password => 'xxxx' > > } > > On Apr 17, 9:19 am, Marnen Laibow-Koser <rails-mailing-l...@andreas- > s.net> wrote: > > tashfeen.ekram wrote: > > > Do I need to uninstall sendmail before trying to use postfix? (sorry > > > not exactly a rails question) > > > > If setting up an SMTP server on your laptop is too much trouble, you > > could always point Rails to your ISP's SMTP server. This is what I > > generally do, at least for development. > > > > Best, > > -- > > Marnen Laibow-Koserhttp://www.marnen.org > > mar...@marnen.org > > -- > > Posted viahttp://www.ruby-forum.com/. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---