what version rails?
what's the error message?
I use the following under Rails 2.3.2 - no additional gem.
In the file config/initializers/action_mailer.rb:
-------------------
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:enable_starttls_auto => true,
:address => "smtp.gmail.com",
:port => "587",
:domain => "engine.local",
:authentication => :plain,
:user_name => "bultaco.rick",
:password => "**********"
}
-------------------
This works fine for development / testing
On Apr 18, 2:17 pm, "tashfeen.ekram" <[email protected]> wrote:
> i just tried to configure to use gmail with the tlsmail gem. i seem to
> be getting the same time out error. is there something wrong in my
> config. i have tried configuring it to several different inclugin
> sendmail and postifx on my laptop, i installed mailtrap plugin, and
> now gmail and all give me the same error. really strange....
>
> config for gmail:
>
> require 'tlsmail'
>
> Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
>
> ActionMailer::Base.raise_delivery_errors = true
>
> ActionMailer::Base.perform_deliveries = true
>
> ActionMailer::Base.delivery_method = :smtp
>
> ActionMailer::Base.smtp_settings = {
>
> :address => 'smtp.gmail.com',
>
> :port => 587,
>
> :tls => true,
>
> :domain => 'xxxx.com',
>
> :authentication => :plain,
>
> :user_name => 'xxxx',
>
> :password => 'xxxx'
>
> }
>
> On Apr 17, 9:19 am, Marnen Laibow-Koser <rails-mailing-l...@andreas-
>
> s.net> wrote:
> > tashfeen.ekram wrote:
> > > Do I need to uninstall sendmail before trying to use postfix? (sorry
> > > not exactly a rails question)
>
> > If setting up an SMTP server on your laptop is too much trouble, you
> > could always point Rails to your ISP's SMTP server. This is what I
> > generally do, at least for development.
>
> > Best,
> > --
> > Marnen Laibow-Koserhttp://www.marnen.org
> > [email protected]
> > --
> > Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---