# Mail now in ActionMailer

**URL:** <https://www.ruby-forum.com/t/mail-now-in-actionmailer/180834>\
**Category:** Rails\
**Created:** [December 30, 2009, 2:16am UTC](https://www.ruby-forum.com/t/mail-now-in-actionmailer/180834 "2009-12-30T02:16:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikel\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/2bfe46/32.png) [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Post date:** [December 30, 2009, 2:16am UTC](https://www.ruby-forum.com/t/mail-now-in-actionmailer/180834/1 "2009-12-30T02:16:55Z")

</div>

OK everyone, so we finally have Mail merged into ActionMailer replacing  
out  
TMail

This is for the 3.0 release, and not part of the 2.x tree.

I am the TMail maintainer and I decided this year to write a ruby email  
handler, the Mail gem is my solution to this.

Mail takes a very object oriented approach to email. It conforms to  
RFCs as  
closely as practical and parses the 0.5gb Trec and 2.5Gb Enron  
email/spam  
database (about 500,000 emails) without crashing.

Anyone who has used TMail will appreciate things Mail does and you  
should  
not have too much trouble moving over. The only thing you need to keep  
in  
mind is that in mail, everything is an object, so you have to call :to\_s  
to  
get string values. Mail also has :decoded and :encoded methods for  
every  
object which should help you out more.

Also, unlike ActionMailer’s vendoring of TMail, Mail is a gem  
dependency, so  
we can keep things up to date easily.

You can read about the Mail gem at:

> **[Mikel Lindsaar](https://lindsaar.net/2009/9/17/mail-tmail-the-future-of-ruby-email-handling)**
>
> Internet Home for Mikel Lindsaar

> **[Mikel Lindsaar](https://lindsaar.net/2009/10/28/new-mail-gem-released)**
>
> Internet Home for Mikel Lindsaar

> **[Mikel Lindsaar](https://lindsaar.net/2009/9/18/mail-and-bounced-emails)**
>
> Internet Home for Mikel Lindsaar

> **[GitHub - mikel/mail: A Really Ruby Mail Library](https://github.com/mikel/mail)**
>
> A Really Ruby Mail Library. Contribute to mikel/mail development by creating an account on GitHub.

The commit where Jeremy merged in my changes is at:

> <https://github.com/rails/rails/commit/b27a3e8da39484d8a02d3b9c1e4dc3cb60ddcce7>
>
> Conflicts:
> actionmailer/lib/action\_mailer.rb

> <https://github.com/rails/rails/commit/71ffa760701d2240ece5f17b75df316611ecb3d0>

–

> **[Mikel Lindsaar](https://lindsaar.net/)**
>
> Internet Home for Mikel Lindsaar

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Core” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-core?hl=en](http://groups.google.com/group/rubyonrails-core?hl=en).

---

<div class="post-metadata">

**Author:** ![Mikel\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/2bfe46/32.png) [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Post date:** [December 30, 2009, 2:40am UTC](https://www.ruby-forum.com/t/mail-now-in-actionmailer/180834/2 "2009-12-30T02:40:56Z")

</div>

Great post Mikel

Thanks for you hard work - i’m excited to read more.

On Tue, Dec 29, 2009 at 6:15 PM, Mikel L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> mind is that in mail, everything is an object, so you have to call :to\_s to  
> [Merge branch 'master' of git://github.com/mikel/rails into mail · rails/rails@b27a3e8 · GitHub](http://github.com/rails/rails/commit/b27a3e8da39484d8a02d3b9c1e4dc3cb60ddcce7)  
> removed\_email\_address@domain.invalid.  
> For more options, visit this group at  
> [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![Mikel\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/2bfe46/32.png) [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Post date:** [December 30, 2009, 4:11pm UTC](https://www.ruby-forum.com/t/mail-now-in-actionmailer/180834/3 "2009-12-30T16:11:40Z")

</div>

Mikel L. wrote:

> OK everyone, so we finally have Mail merged into ActionMailer replacing  
> out  
> TMail
> 
> This is for the 3.0 release, and not part of the 2.x tree.

Great! I wish it were already there 🙂 I’ve been using your gem a little  
and am quite happy with it.
