I want to send myself an email when someone comments on my site. I setup actionmailer in the environment.rb file, but how do I actually send an email? Is it right after "post.save" or something? If so, what's the syntax? Thanks for any help.
on 2006-03-14 18:58
on 2006-03-14 20:29
You will want to send the email after post.save since you only want to send notifications once the transaction completes successfully. As for syntax, checkout http://am.rubyonrails.org/classes/ActionMailer/ Base.html On Tuesday, March 14, 2006, at 6:58 PM, hreyaatnh wrote: >Rails mailing list >Rails@lists.rubyonrails.org >http://lists.rubyonrails.org/mailman/listinfo/rails Cheers! --Dave Teare http://devlists.com - Email list management http://palmsphere.com - Apps for your hand-held