Ruby On Rails: acts_as_emailable

Matt Beedle has written a solid little plugin called acts_as_emailable that let’s site users send each other messages through the site. A couple of cool things that stood out to me: 1. It doesn’t need to send emails it can store the messages on the site (in a db table) but can send emails if [...]

Matt Beedle has written a solid little plugin called acts_as_emailable that let’s site users send each other messages through the site.

A couple of cool things that stood out to me:

1. It doesn’t need to send emails it can store the messages on the site (in a db table) but can send emails if it has to using ActionMailer

2. You can make a little message form that sends a message to another user that references user id’s instead of actual email addresses

3. It has a couple cool methods like:

user.users_whom_i_have_emailed
user.users_who_have_emailed_me

Full details can be found on Matt’s site:

http://matt-beedle.com/2007/06/05/acts_as_emailable/