In a nutshell, I''m using restful_authentication that emails the user
when they sign up for an account
The development.log file shows the body of the e-mail message being
prepped to send out, but doesn''t show confirmation that it made it.
When I use gmail''s SMTP server, a Rails exception is thrown because
gmail expects an encrypted connection.  A different type of Rails
exception is thrown if I try to connect to a Windows SMTP server on my
local machine. I used Yahoo''s SMTP server and no Rails exceptions is
thrown.  So, I have a feeling that a connection is made to the Yahoo
SMTP server but, for some reason,  no email is delivered.
Could someone advise on how to debug this and find out why it''s not
being delivered?
Here''s the setup code in environment.rb
 ActionMailer::Base.delivery_method = :smtp
 ActionMailer::Base.raise_delivery_errors = true
  ActionMailer::Base.smtp_settings = {
:address => "smtp.mail.yahoo.com" ,
:port => 25,
:domain => "www.haloresearch.net" ,
:authentication => :login,
:user_name => "patelc75" ,
:password => "irdiktanic" ,
  }
Here''s the delivery code:
class UserObserver < ActiveRecord::Observer
  def after_create(user)
    UserMailer.deliver_signup_notification(user)
  end
  def after_save(user)
    UserMailer.deliver_activation(user) if user.recently_activated?
  end
end
Thanks!
Chirag
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Cease Cease
2008-Jan-30  06:18 UTC
Re: help debugging ActionMailer with restful_authentication?
http://www.stephenchu.com/2006/06/how-to-use-gmail-smtp-server-to-send.html to use gmail -- Posted via http://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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---