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:>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.
>
>--
>Posted via http://www.ruby-forum.com/.
>_______________________________________________
>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
--
Posted with http://DevLists.com. Sign up and save your time!