Derek Haynes
2005-Apr-20 22:03 UTC
ActionMailer: Net::SMTPSyntaxError (502 unimplemented (#5.5.1) error
Quick ActionMailer Question: I''m trying to send a test email message using ActionMailer and I get a Net::SMTPSyntaxError (502 unimplemented (#5.5.1) error. I''m attempting to access a remote smtp server and have setup my settings in the environment.rb file according to the "how to" article. My test controller: class MailTestController < ApplicationController def index Notifier::deliver_test_message end end Below is the log. It appears the message is formatted correctly. Processing MailTestController#index (for 127.0.0.1 at Wed Apr 20 17:55:37 Eastern Standard Time 2005) Parameters: {"action"=>"index", "controller"=>"mail_test"} Sent mail: Date: Wed, 20 Apr 2005 17:55:37 -0400 From: accounts-NNbln4oHrFpl57MIdRCFDg@public.gmane.org To: derek.haynes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Subject: Thank you for registering with our website Content-Type: text/plain; charset=utf-8 dear this is my test name thanks for the test email message! Net::SMTPSyntaxError (502 unimplemented (#5.5.1) ): 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-0.9.1/lib/action_mailer/base.rb:189:in `perform_delivery_smtp'' c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-0.9.1/lib/action_mailer/base.rb:137:in `send'' c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-0.9.1/lib/action_mailer/base.rb:137:in `deliver'' c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-0.9.1/lib/action_mailer/base.rb:107:in `method_missing'' app/controllers/mail_test_controller.rb:3:in `index'' Thanks in advance, Derek -- Derek Haynes Cell - 404.593.4879 Blog - http://itsderek23.blogspot.com
David Morton
2005-Apr-21 00:17 UTC
Re: ActionMailer: Net::SMTPSyntaxError (502 unimplemented (#5.5.1) error
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Derek Haynes wrote: | Quick ActionMailer Question: | | I''m trying to send a test email message using ActionMailer and I get a | Net::SMTPSyntaxError (502 unimplemented (#5.5.1) error. That means the mailer is sending a command that is not available on the server, such as AUTH or something. In fact, it looks like it died waiting for the response to the auth command. What do you have set for :authentication in the server_settings? - -- David Morton Maia Mailguard server side anti-spam/anti-virus solution: http://www.maiamailguard.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCZvERSIxC85HZHLMRAtIZAKCg/y0mZ7exIlmv/POg0ae/4PKgwgCeIMwP ani1xKoPOcQcDXg6BV7KX8M=Nt3b -----END PGP SIGNATURE-----
Derek Haynes
2005-Apr-21 04:27 UTC
Re: ActionMailer: Net::SMTPSyntaxError (502 unimplemented (#5.5.1) error
David, Below are my settings. I''m thinking the server just doesn''t allow this action. Thoughts? ActionMailer::Base.server_settings = { :address => "mail.host.com", :port => 25, :user_name => "derek-19nr15rzP4Y@public.gmane.org", :password => "pw", :authentication => :login } On 4/20/05, David Morton <mortonda-0/IDydmJJnNeoWH0uzbU5w@public.gmane.org> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Derek Haynes wrote: > | Quick ActionMailer Question: > | > | I''m trying to send a test email message using ActionMailer and I get a > | Net::SMTPSyntaxError (502 unimplemented (#5.5.1) error. > > That means the mailer is sending a command that is not available on the > server, such as AUTH or something. > > In fact, it looks like it died waiting for the response to the auth > command. What do you have set for :authentication in the server_settings? > > - -- > David Morton > Maia Mailguard server side anti-spam/anti-virus solution: > http://www.maiamailguard.com > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.5 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFCZvERSIxC85HZHLMRAtIZAKCg/y0mZ7exIlmv/POg0ae/4PKgwgCeIMwP > ani1xKoPOcQcDXg6BV7KX8M> =Nt3b > -----END PGP SIGNATURE----- > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Derek Haynes Cell - 404.593.4879 Blog - http://itsderek23.blogspot.com
Wolfgang Klinger
2005-Apr-21 05:49 UTC
Re: ActionMailer: Net::SMTPSyntaxError (502 unimplemented (#5.5.1) error
Hi! On Wed, 20 Apr 2005, Derek Haynes wrote the following:> Processing MailTestController#index (for 127.0.0.1 at Wed Apr 20 > 17:55:37 Eastern Standard Time 2005) > Parameters: {"action"=>"index", "controller"=>"mail_test"} > Sent mail: > Date: Wed, 20 Apr 2005 17:55:37 -0400 From: accounts-NNbln4oHrFpl57MIdRCFDg@public.gmane.org > To: derek.haynes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Subject: Thank you for registering with our > website Content-Type: text/plain; charset=utf-8 dear this is my test > nameIt seems that the line breaks are wrong, each header should go into it''s own line though, please double check that (maybe it''s just a paste problem).. bye Wolfgang
David Morton
2005-Apr-21 15:35 UTC
Re: ActionMailer: Net::SMTPSyntaxError (502 unimplemented (#5.5.1) error
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Derek Haynes wrote: | David, | | Below are my settings. I''m thinking the server just doesn''t allow this | action. Thoughts? | | ActionMailer::Base.server_settings = { | :address => "mail.host.com", | :port => 25, | :user_name => "derek-19nr15rzP4Y@public.gmane.org", | :password => "pw", | :authentication => :login | } remove the :authentication, user_name, and password lines? - -- David Morton Maia Mailguard server side anti-spam/anti-virus solution: http://www.maiamailguard.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCZ8hZSIxC85HZHLMRAkeJAJ9KLGe4ykOEdlwHWOw8qQX1F96tRACfQVUG XXcFGDlbHJqaPAYUxHkZPJw=OFHy -----END PGP SIGNATURE-----
Derek Haynes
2005-Apr-21 16:19 UTC
Re: ActionMailer: Net::SMTPSyntaxError (502 unimplemented (#5.5.1) error
It looks like my mail server isn''t letting me conduct the transaction. However, I got it working just fine with another smtp account. Thanks for your help! On 4/21/05, David Morton <mortonda-0/IDydmJJnNeoWH0uzbU5w@public.gmane.org> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Derek Haynes wrote: > | David, > | > | Below are my settings. I''m thinking the server just doesn''t allow this > | action. Thoughts? > | > | ActionMailer::Base.server_settings = { > | :address => "mail.host.com", > | :port => 25, > | :user_name => "derek-19nr15rzP4Y@public.gmane.org", > | :password => "pw", > | :authentication => :login > | } > > remove the :authentication, user_name, and password lines? > > > - -- > David Morton > Maia Mailguard server side anti-spam/anti-virus solution: > http://www.maiamailguard.com > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.5 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFCZ8hZSIxC85HZHLMRAkeJAJ9KLGe4ykOEdlwHWOw8qQX1F96tRACfQVUG > XXcFGDlbHJqaPAYUxHkZPJw> =OFHy > -----END PGP SIGNATURE----- > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Derek Haynes Cell - 404.593.4879 Blog - http://itsderek23.blogspot.com