In ruby on rails 3 you can use their ActiveMailer for sending emails.
Also you can install the Mail gem.
I wonder what the difference is?
Does the Mail gem provide things ActiveMailer doesnt?
Should i always install this gem?
Thanks
In ruby on rails 3 you can use their ActiveMailer for sending emails.
Also you can install the Mail gem.
I wonder what the difference is?
Does the Mail gem provide things ActiveMailer doesnt?
Should i always install this gem?
Thanks
The relationship between the two is that the Mail
gem is how Rails 3 implements mail ( replacing the previous TMail
approach in earlier versions). In other words, ActionMailer
is the Rails wrapper around the Mail
gem's usage within the framework.
From a post by the gem's author:
The prior versions of ActionMailer used TMail for all its email delivery needs, and because certain functionality was missing in TMail (such as auto quoting and encoding of fields, handling multipart emails smoothly, etc.), ActionMailer had grown a set of fairly complex and fragile methods to shoehorn in the missing functionality.
That post is here. And this screencast might be helpful if you haven't seen it already.