# Re: ActionMailer - Sent but no mail?

**URL:** <https://www.ruby-forum.com/t/re-actionmailer-sent-but-no-mail/51603>\
**Category:** Rails\
**Created:** [November 15, 2005, 12:17am UTC](https://www.ruby-forum.com/t/re-actionmailer-sent-but-no-mail/51603 "2005-11-15T00:17:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![codeslush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c57346/32.png) [@codeslush](https://www.ruby-forum.com/u/codeslush)\
**Post date:** [November 15, 2005, 12:17am UTC](https://www.ruby-forum.com/t/re-actionmailer-sent-but-no-mail/51603/1 "2005-11-15T00:17:43Z")

</div>

okay, okay, okay…so, I had it disabled (unknowingly) in the  
development environment config file.

So now that it is enabled there, I have a different problem:

502 Command is locally disabled

Any ideas? Here is the development log info:

Net::SMTPSyntaxError (502 Command is locally disabled  
):  
c:/ruby/lib/ruby/1.8/net/smtp.rb:680:in `check_response' c:/ruby/lib/ruby/1.8/net/smtp.rb:582:in `auth\_login’  
c:/ruby/lib/ruby/1.8/net/smtp.rb:581:in `critical' c:/ruby/lib/ruby/1.8/net/smtp.rb:581:in `auth\_login’  
c:/ruby/lib/ruby/1.8/net/smtp.rb:571:in ` __send__' c:/ruby/lib/ruby/1.8/net/smtp.rb:571:in `authenticate’  
c:/ruby/lib/ruby/1.8/net/smtp.rb:411: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.1.2/lib/action_mailer/base.rb:437:in `perform\_delivery\_smtp’  
c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.2/lib/action\_mailer/base.rb:327:in  
`send' c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.2/lib/action_mailer/base.rb:327:in `deliver!’  
c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.2/lib/action\_mailer/base.rb:254:in  
`deliver' /app/controllers/main_controller.rb:40:in `update’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action\_controller/base.rb:834:in  
`send' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action_controller/base.rb:834:in `perform\_action\_without\_filters’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action\_controller/filters.rb:295:in  
`perform_action_without_benchmark' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action_controller/benchmarking.rb:69:in `perform\_action\_without\_rescue’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action\_controller/benchmarking.rb:69:in  
`measure' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action_controller/benchmarking.rb:69:in `perform\_action\_without\_rescue’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action\_controller/rescue.rb:82:in  
`perform_action' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action_controller/base.rb:365:in `send’  
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action\_controller/base.rb:365:in  
`process_without_session_management_support' c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action_controller/session_management.rb:116:in `process’  
c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/dispatcher.rb:36:in  
`dispatch' c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/webrick_server.rb:117:in `handle\_dispatch’  
c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/webrick\_server.rb:83:in  
`service' c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service’  
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' c:/ruby/lib/ruby/1.8/webrick/server.rb:155:in `start\_thread’  
c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start' c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start\_thread’  
c:/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start' c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each’  
c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start' c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start’  
c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start' c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/webrick_server.rb:69:in `dispatch’  
c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/commands/server.rb:59  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:18:in  
`require__' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require’  
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.2/lib/active\_support/dependencies.rb:213:in  
`require’  
script/server:5

Michael

Michael [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:  
Ettore,

I have the same settings - but still no luck. In fact, I have gone so  
far as to provide invalid credentials just to see if I can get an error  
to show up and I don’t get anything indicating invalid credentials.

Does anyone have any other input for this? Or possibly other things I  
can try? Is there any way to capture any error messages that may take  
place?

Thanks for any input or experiences you may have!

Michael

Ettore B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:  
Hi, my settings are like this:

ActionMailer::Base.delivery\_method = :smtp  
ActionMailer::Base.server\_settings = {  
:address =\> “[mail.mydomain.org](http://mail.mydomain.org)”,  
:port =\> 25,  
:domain =\> “[www.mydomain.org](http://www.mydomain.org)”,  
:authentication =\> :login,  
:user\_name =\> “xxxxxx”,  
:password =\> “xxxxx”}  
ActionMailer::Base.perform\_deliveries = true  
ActionMailer::Base.raise\_delivery\_errors = true  
ActionMailer::Base.default\_charset = “utf-8”

it works fine

hope it helps

Ettore

```
Il giorno 14/nov/05, alle ore 22:38, Michael ha scritto:

Hi,

```

I am attempting to use ActionMailer to send out an email (SMTP) and am  
having an issue. The log files show that the email is sent, but the  
email is not making it to my inbox.

I have followed the documentation both on the Wiki and in the AWD  
book. I’m not sure which setting I have incorrect and need some  
pointers.

:authentication - should this be set to true, or :login, :plain,  
etc…??? I’m finding conflicting documentation.

:domain - Not quite sure what to put here. I have tried [cox.net](http://cox.net),  
[www.cox.net](http://www.cox.net), etc… I even took the HELO domain from one of the headers  
generated from my email client and I still didn’t get the email to come  
into my account.

Is there any way to get error messages from failed emails? The  
development log file doesn’t show anything other than "Sent mail: "  
followed by the email I submitted. This should not be a relay issue  
because I’m attempting to use the actual smtp server of my ISP.

Any guidance is greatly appreciated.

Regards,

Michael

* * *

Yahoo! FareChase - Search multiple travel sites in one click.

* * *

Rails mailing list  
removed\_email\_address@domain.invalid  
[http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

* * *

Rails mailing list  
removed\_email\_address@domain.invalid  
[http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

* * *

Yahoo! FareChase - Search multiple travel sites in one click.

---

<div class="post-metadata">

**Author:** ![codeslush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c57346/32.png) [@codeslush](https://www.ruby-forum.com/u/codeslush)\
**Post date:** [November 15, 2005, 12:41am UTC](https://www.ruby-forum.com/t/re-actionmailer-sent-but-no-mail/51603/2 "2005-11-15T00:41:46Z")

</div>

Does your smtp server require a login? Mine didn’t and I think I was  
getting a 502 like you when I tried to send credentials. I had to  
actually remove the authentication, username & password options to get  
it to work.

Shad

On 11/14/05, Michael [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ):
> 
> `deliver’
> 
> `perform\_action’  
> c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/dispatcher.rb:36:in  
> c:/ruby/lib/ruby/1.8/webrick/server.rb:155:in  
> c:/ruby/lib/ruby/gems/1.8/gems/rails-0.14.2/lib/webrick\_server.rb:69:in  
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.2/lib/active\_support/dependencies.rb:213:in
> 
> :domain =\> “[www.mydomain.org](http://www.mydomain.org)”,
> 
> Hi,
> 
> Any guidance is greatly appreciated.  
> removed\_email\_address@domain.invalid  
> Yahoo! FareChase - Search multiple travel sites in one click.  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–  
[http://www.ShadReynolds.com](http://www.ShadReynolds.com)  
[![Imgur](https://live.staticflickr.com/7623/27093141761_be583ae0a9.jpg "Shad Reynolds") ](https://www.flickr.com/photos/shadreynolds/)

---

<div class="post-metadata">

**Author:** ![codeslush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c57346/32.png) [@codeslush](https://www.ruby-forum.com/u/codeslush)\
**Post date:** [November 15, 2005, 1:38am UTC](https://www.ruby-forum.com/t/re-actionmailer-sent-but-no-mail/51603/3 "2005-11-15T01:38:54Z")

</div>

On 11/14/05, Michael [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> okay, okay, okay…so, I had it disabled (unknowingly) in the development  
> environment config file.
> 
> So now that it is enabled there, I have a different problem:
> 
> 502 Command is locally disabled

This sounds very much like the pain I went through when I was trying  
an authentication setting that wasn’t supported by the SMTP server  
(coincidentally Cox, when I’m working on this stuff from home).

Try removing the :authentication, :login and :password lines from your  
settings.

–

- Chris

---

<div class="post-metadata">

**Author:** ![codeslush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c57346/32.png) [@codeslush](https://www.ruby-forum.com/u/codeslush)\
**Post date:** [November 15, 2005, 2:05am UTC](https://www.ruby-forum.com/t/re-actionmailer-sent-but-no-mail/51603/4 "2005-11-15T02:05:57Z")

</div>

WOW…unbelievable…you are correct. I had no idea my outbound mail  
didn’t require authentication! ☹ Sure enough, I took those lines out  
and all is well. That is good, because it tells me I have my settings  
correct now.

However, I need to achieve something a little different. It is good  
that I was able to get this working via cox with my personal address,  
but now I want to send through an email account hosted at godaddy. I  
understand relaying can be problematic, but within Thunderbird, I can  
send and receive through the hosted account address from my home  
computer w/o a problem.

Within Rails, however, I get the following error: Errno::EINVAL.  
Based on the log, I am pretty sure it is timing out for some reason. I  
have tried with and w/o credentials. Does anyone know about this error?

c:/ruby/lib/ruby/1.8/net/protocol.rb:197:in `sysread' c:/ruby/lib/ruby/1.8/net/protocol.rb:197:in `rbuf\_fill’  
c:/ruby/lib/ruby/1.8/net/protocol.rb:196:in `timeout' c:/ruby/lib/ruby/1.8/timeout.rb:55:in `timeout’  
c:/ruby/lib/ruby/1.8/net/protocol.rb:196:in `rbuf_fill' c:/ruby/lib/ruby/1.8/net/protocol.rb:160:in `readuntil’  
c:/ruby/lib/ruby/1.8/net/protocol.rb:171: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:396: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.1.2/lib/action_mailer/base.rb:437:in `perform\_delivery\_smtp’  
c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.2/lib/action\_mailer/base.rb:327:in  
`send' c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.2/lib/action_mailer/base.rb:327:in `deliver!’  
c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.2/lib/action\_mailer/base.rb:254:in  
`deliver' #{RAILS_ROOT}/app/controllers/main_controller.rb:40:in `update’

Thanks,

Michael

Chris C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:  
On 11/14/05, Michael wrote:

> okay, okay, okay…so, I had it disabled (unknowingly) in the development  
> environment config file.
> 
> So now that it is enabled there, I have a different problem:
> 
> 502 Command is locally disabled

This sounds very much like the pain I went through when I was trying  
an authentication setting that wasn’t supported by the SMTP server  
(coincidentally Cox, when I’m working on this stuff from home).

Try removing the :authentication, :login and :password lines from your  
settings.

–

- Chris
