Hi,
Just off the top of my head. You could do:
mail = YourMailer.create_your_notification
store_to_rss(mail.body)
YourMailer.deliver(mail)
Check out: http://i.loveruby.net/en/man/tmail/mail.html for more
information on the TMail object "create_..." returns.
Kind Regards,
Flurin Egger
Ben Nolan wrote:
> Hi,
>
> Is there a way to render actionmailer templates to the text email that
> is actually set?
>
> I want to do this so I can keep an RSS feed of all the emails that are
> sent to a user.
>
> Regards,
> Ben
>
> -------- Original Message --------
> Subject: [Rails] Storing emails in an rss feed
> Date: Tue, 22 Mar 2005 21:21:13 +1200
> From: Ben Nolan <ben-tH0n/LiDeu9BWQWeTLFoew@public.gmane.org>
> Reply-To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
>
>
>
> Hi,
>
> I want to be able to render my actionmailer templates into text that I
> can store in an rss table on my server (so that users can subscribe to
> their events via rss OR email). How can I render an actionmailer
> template and query the body of the email?
>
> Or is there a better way to do this?
>
> Regards,
> Ben
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails