Hello Folks,
I am trying to use Gmail to send out test emails from my dev machine.
I have the following in my environment.rb
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address => "
smtp.gmail.com",
:port => 465,
:domain => "
mydomain.com",
:authentication => :login,
:user_name => "myloginid",
:password => "mypassword"
}
I can see in my log file that the email is being prepped for sending.
However after a little while I get a timeout error as below. My
Outlook settings for email have the flag checked for "This server
requires an encrypted connection (SSL)". Do I need to set something in
my smtp_settings? I also see some error about `method_missing' in
action_mailer/base.rb in the error below but not sure what that is
about.
Anything else I need to do to get this to work?
Thanks for your help.
Sanjay.
c:/ruby/lib/ruby/1.8/timeout.rb:54:in `rbuf_fill'
c:/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout'
c:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout'
c:/ruby/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill'
c:/ruby/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
c:/ruby/lib/ruby/1.8/net/protocol.rb:126:in `readline'
c:/ruby/lib/ruby/1.8/net/smtp.rb:664:in `recv_response'
c:/ruby/lib/ruby/1.8/net/smtp.rb:396:in `do_start'
c:/ruby/lib/ruby/1.8/net/smtp.rb:686:in `critical'
c:/ruby/lib/ruby/1.8/net/smtp.rb:396:in `do_start'
c:/ruby/lib/ruby/1.8/net/smtp.rb:378:in `start'
c:/ruby/lib/ruby/1.8/net/smtp.rb:316:in `start'
c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.3.3/lib/action_mailer/
base.rb:565:in `perform_delivery_smtp'
c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.3.3/lib/action_mailer/
base.rb:451:in `send'
c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.3.3/lib/action_mailer/
base.rb:451:in `deliver!'
c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.3.3/lib/action_mailer/
base.rb:333:in `method_missing'
#{RAILS_ROOT}/app/controllers/email_controller.rb:9:in `remind'