It occurred to me that maybe seeing the initialization code might help you
help me, so here it is

ActionMailer::Base.smtp_settings = {
  :address => "mail.thirdpartydomain.com",
  :domain => "www.mydmain.com",
  :port => 2525,
  :authentication => :login,
  :user_name => "username",
  :password => "password"
}
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.default_charset = "utf-8"
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.default_content_type ="text/html"

On Wed, Mar 3, 2010 at 1:35 PM, miah <[email protected]> wrote:

> Hello everyone,
> I'm trying to use ActionMailer to send out emails via a third party
> SMTP service.  On my development box (running ruby 1.8.6) everything
> works without a hitch.  On the production server(ruby 1.8.7) it fails
> because the ActionMailer is trying to use SSL.  So any suggestions as
> to how to stop this?
>
> I've tried adding:
> ActionMailer::Base.smtp_settings[:enable_starttls_auto] = false to
> both the environments file, and the actual ActionMailer intializer.
> And I've also tried commenting out the check in the ActionMailer base
> code, but neither worked.
>
> Any ideas?
> Thanks!
> Miah Petersen
>
> --
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to