Hello all,
I am trying to get Devise and Mailer to work together. Whenever I send
an email for the "Forget password'' section. It says: "You
will receive
an email with instructions about how to reset your password in a few
minutes."
I am trying to send this to my gmail account for testing purposes.
After a few minutes, I do not receive any email at all.
So far in /config/environment.rb. I''ve got the following code:
config.action_mailer.default_url_options = { :host => ''localhost:
3000'' }
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:enable_startttls_auto => true,
:address => ''smtp.gmail.com'',
:port => ''587'',
:authentication => :plain,
:domain => ''myapp.com'',
:user_name =>
''my_actual_email_account-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org'',
:password => ''my_actual_password''
}
Are these settings correct?
Hoping to hear from you soon.
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
I am using Ruby 1.8.7, Rails 2.3.8 On Aug 23, 11:06 am, Christian Fazzini <christian.fazz...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello all, > > I am trying to get Devise and Mailer to work together. Whenever I send > an email for the "Forget password'' section. It says: "You will receive > an email with instructions about how to reset your password in a few > minutes." > > I am trying to send this to my gmail account for testing purposes. > After a few minutes, I do not receive any email at all. > > So far in /config/environment.rb. I''ve got the following code: > > config.action_mailer.default_url_options = { :host => ''localhost: > 3000'' } > config.action_mailer.delivery_method = :smtp > config.action_mailer.smtp_settings = { > :enable_startttls_auto => true, > :address => ''smtp.gmail.com'', > :port => ''587'', > :authentication => :plain, > :domain => ''myapp.com'', > :user_name => ''my_actual_email_acco...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org'', > :password => ''my_actual_password'' > } > > Are these settings correct? > > Hoping to hear from you soon.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
Ok figured out the problem. The reason why it wasn''t reporting any errors was because I had config.action_mailer.raise_delivery_errors = false in my /config/environments/development.rb file Second, my configuration is wrong. I had: :enable_startttls_auto => true, Should be, :enable_starttls_auto => true, I restarted the server, and am now receiving emails as should be. On Aug 23, 5:55 pm, Christian Fazzini <christian.fazz...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I am using Ruby 1.8.7, Rails 2.3.8 > > On Aug 23, 11:06 am, Christian Fazzini <christian.fazz...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > Hello all, > > > I am trying to get Devise and Mailer to work together. Whenever I send > > an email for the "Forget password'' section. It says: "You will receive > > an email with instructions about how to reset your password in a few > > minutes." > > > I am trying to send this to my gmail account for testing purposes. > > After a few minutes, I do not receive any email at all. > > > So far in /config/environment.rb. I''ve got the following code: > > > config.action_mailer.default_url_options = { :host => ''localhost: > > 3000'' } > > config.action_mailer.delivery_method = :smtp > > config.action_mailer.smtp_settings = { > > :enable_startttls_auto => true, > > :address => ''smtp.gmail.com'', > > :port => ''587'', > > :authentication => :plain, > > :domain => ''myapp.com'', > > :user_name => ''my_actual_email_acco...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org'', > > :password => ''my_actual_password'' > > } > > > Are these settings correct? > > > Hoping to hear from you soon.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.