I will answer this one on my own... :-)
I had missed the :domain part.
This works:
config.action_mailer.delivery_method = :smtp
ActionMailer::Base.server_settings = {
:address => "smtp.domain.com",
:port => 25,
:domain => "domain.com",
:user_name => "email-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org",
:password => "password",
:authentication => :login
}
GPB wrote:> Hello...
>
> I am encountering a problem sending emails from Windows using an
> extermal smtp server.
>
> When attempting to send out the email, the following error is
> returned:
>
> 501 Syntax: HELO hostname
>
> I have checked the format of the emails, and they are ok. It seems
> it''s choking right at the begging of the connection to the smtp
> server, when my computer needs to identify itself by sending the HELO
> hostname
>
> Full trace:
>
> C:/ruby/lib/ruby/1.8/net/smtp.rb:680:in `check_response''
> C:/ruby/lib/ruby/1.8/net/smtp.rb:653:in `getok''
> C:/ruby/lib/ruby/1.8/net/smtp.rb:623:in `helo''
> C:/ruby/lib/ruby/1.8/net/smtp.rb:401: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/bin/REShop/vendor/rails/actionmailer/lib/action_mailer/base.rb:
> 565:in `perform_delivery_smtp''
> C:/ruby/bin/REShop/vendor/rails/actionmailer/lib/action_mailer/base.rb:
> 451:in `send''
> C:/ruby/bin/REShop/vendor/rails/actionmailer/lib/action_mailer/base.rb:
> 451:in `deliver!''
> C:/ruby/bin/REShop/vendor/rails/actionmailer/lib/action_mailer/base.rb:
> 333:in `method_missing''
> C:/ruby/bin/REShop/app/controllers/cart_items_controller.rb:100:in
> `send_email''
> C:/ruby/bin/REShop/app/controllers/cart_items_controller.rb:92:in
> `place_order''
> C:/ruby/bin/REShop/vendor/rails/actionpack/lib/action_controller/
> base.rb:1101:in `send''
> C:/ruby/bin/REShop/vendor/rails/actionpack/lib/action_controller/
> base.rb:1101:in `perform_action_without_filters''
> C:/ruby/bin/REShop/vendor/rails/actionpack/lib/action_controller/
> filters.rb:696:in `call_filters''
> C:/ruby/bin/REShop/vendor/rails/actionpack/lib/action_controller/
> filters.rb:688:in `perform_action_without_benchmark''
> C:/ruby/bin/REShop/vendor/rails/actionpack/lib/action_controller/
> benchmarking.rb:66:in `perform_action_without_rescue''
> C:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure''
> C:/ruby/bin/REShop/vendor/rails/actionpack/lib/action_controller/
> benchmarking.rb:66:in `perform_action_without_rescue''
> C:/ruby/bin/REShop/vendor/rails/actionpack/lib/action_controller/
> rescue.rb:83:in `perform_action''
> C:/ruby/bin/REShop/vendor/rails/actionpack/lib/action_controller/
> base.rb:435:in `send''
> C:/ruby/bin/REShop/vendor/rails/actionpack/lib/action_controller/
> base.rb:435:in `process_without_filters''
> C:/ruby/bin/REShop/vendor/rails/actionpack/lib/action_controller/
> filters.rb:684:in `process_without_session_management_support''
> C:/ruby/bin/REShop/vendor/rails/actionpack/lib/action_controller/
> session_management.rb:114:in `process''
> C:/ruby/bin/REShop/vendor/rails/actionpack/lib/action_controller/
> base.rb:334:in `process''
> C:/ruby/bin/REShop/vendor/rails/railties/lib/dispatcher.rb:41:in
> `dispatch''
> C:/ruby/bin/REShop/vendor/rails/railties/lib/webrick_server.rb:113:in
> `handle_dispatch''
> C:/ruby/bin/REShop/vendor/rails/railties/lib/webrick_server.rb:79: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:173:in `start_thread''
> C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start''
> C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread''
> C:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start''
> C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each''
> C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start''
> C:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start''
> C:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start''
> C:/ruby/bin/REShop/vendor/rails/railties/lib/webrick_server.rb:63:in
> `dispatch''
> C:/ruby/bin/REShop/vendor/rails/railties/lib/commands/servers/
> webrick.rb:59
> C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require''
> C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require''
> C:/ruby/bin/REShop/vendor/rails/activesupport/lib/active_support/
> dependencies.rb:495:in `require''
> C:/ruby/bin/REShop/vendor/rails/activesupport/lib/active_support/
> dependencies.rb:342:in `new_constants_in''
> C:/ruby/bin/REShop/vendor/rails/activesupport/lib/active_support/
> dependencies.rb:495:in `require''
> C:/ruby/bin/REShop/vendor/rails/railties/lib/commands/server.rb:39
> C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require''
> C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require''
> script/server:3
>
> Any ideas?
>
> Thank you in advance,
>
> GPB
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---