# Help debugging ActionMailer with restful\_authentication?

**URL:** <https://www.ruby-forum.com/t/help-debugging-actionmailer-with-restful-authentication/119905>\
**Category:** Rails\
**Created:** [November 12, 2007, 2:44am UTC](https://www.ruby-forum.com/t/help-debugging-actionmailer-with-restful-authentication/119905 "2007-11-12T02:44:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chirag](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecccb3/32.png) [@chirag](https://www.ruby-forum.com/u/chirag)\
**Post date:** [November 12, 2007, 2:44am UTC](https://www.ruby-forum.com/t/help-debugging-actionmailer-with-restful-authentication/119905/1 "2007-11-12T02:44:43Z")

</div>

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](http://smtp.mail.yahoo.com)” ,  
:port =\> 25,  
:domain =\> “[www.haloresearch.net](http://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

---

<div class="post-metadata">

**Author:** ![chirag](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecccb3/32.png) [@chirag](https://www.ruby-forum.com/u/chirag)\
**Post date:** [January 30, 2008, 7:18am UTC](https://www.ruby-forum.com/t/help-debugging-actionmailer-with-restful-authentication/119905/2 "2008-01-30T07:18:09Z")

</div>

> **[How to use GMail SMTP server to send emails in Rails ActionMailer](http://www.stephenchu.com/2006/06/how-to-use-gmail-smtp-server-to-send.html)**
>
> Recently I had to use Ruby to send emails. I don't want to go through the hassle of setting up a mail server on my build box, and since I us...

to use gmail
