ActionMailer - help!

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.

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
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

Cheers!
–Dave T.
http://devlists.com - Email list management
http://palmsphere.com - Apps for your hand-held