On Tue, Feb 14, 2012 at 11:44 AM, Christopher Jones <li...@ruby-forum.com>wrote:
> > ActionMailer::Base.smtp_settings = { > > :address => "address", > > :port => "port", > > :user_name => "email", > > :password => "password", > > :authentication => "plain", > > :enable_starttls_auto => true > > Hey Javier, I added the above settings to my development.rb and I no > longer get the username and password error, it allows me to create the > new user no problems at all which is great except one major problem, > despite the log stating that the email has been sent I have received > nothing :/ > > Any ideas? > > Have you considered using Devise gem? it has that option (sending emails every time a user is created). I'm not using it now. Inside my app folder I have a mailers folder an inside a user_mailer.rb class UserMailer < ActionMailer::Base default from: "Name <email>" def sender_method_name_here( user , something_else) @user = user @data = "something_else" mail :to => @user.email, :subject => "subject" end end but this is even easier with devise (I don't remember well but you can see the documentation of it in github Javier Q. -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.