The AWDR book has an example to do just this in it. You DO have the book
don''t you? :)
Bob Silva
http://www.railtie.net/
> -----Original Message-----
> From: rails-bounces@lists.rubyonrails.org [mailto:rails-
> bounces@lists.rubyonrails.org] On Behalf Of Michael Gorsuch
> Sent: Saturday, March 04, 2006 4:32 PM
> To: rails@lists.rubyonrails.org
> Subject: Re: [Rails] Sending an email when a comment is posted
>
> Look into using ActionMailer. That should do what you need.
>
> I would also recommend using an Observer to send the email whenever a
> new ''Comment'' is saved.
>
> On 3/4/06, ryan <rheath@ircwv.com> wrote:
> > When a user posts a comment on my site, is there a way for me to be
> > notified via email? I know this is pretty easy in php, i.e. mail()
> > function, but I''m looking for the equivalent in Rails.
> >
> > Thanks!
> >
> > --
> > Posted via http://www.ruby-forum.com/.
> > _______________________________________________
> > Rails mailing list
> > Rails@lists.rubyonrails.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails
> >
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails