Friday, April 22, 2011

[Rails] ActionMailer : Not able to send out mails

Hello,

I have the following code in my environment/development.rb

config.action_mailer.raise_delivery_errors = true;
config.action_mailer.delivery_method = :smtp;
config.action_mailer.smtp_settings = {

:address => "smtp.gmail.com",
:port => 587,
:user_name => "my_id@gmail.com",
:password => "secret",
:authentication => :plain,
:enable_starttls_auto => true,
:domain => "localhost",
}


An email is being generated by the call to the mailer model from one
of my controllers. However, i am not able to send or receive any
emails on gmail.

I am on ruby 1.8.7, rails 2.3.5.
There are no exceptions, just that no emails are being exchanged
between the actual mail servers.

Being quite new to mailer, sorry for any rookie questions.

Thanks,
RORails

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate