# Re: Email outside of Rails

**URL:** <https://www.ruby-forum.com/t/re-email-outside-of-rails/109829>\
**Category:** Rails\
**Created:** [July 19, 2007, 2:22pm UTC](https://www.ruby-forum.com/t/re-email-outside-of-rails/109829 "2007-07-19T14:22:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mslagell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Post date:** [July 19, 2007, 2:22pm UTC](https://www.ruby-forum.com/t/re-email-outside-of-rails/109829/1 "2007-07-19T14:22:37Z")

</div>

Yep, it absolutely works, at least on my dev box.

I’ll have to go back and check but I thought the BillMonk guys mentioned  
something about building that part outside of Rails for performance  
reasons.

I thought I would bring it up now while I’m still early enough into the  
project.

----- Original Message ----  
From: Jacob A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: removed\_email\_address@domain.invalid  
Sent: Thursday, July 19, 2007 6:00:39 AM  
Subject: [Rails] Re: Email outside of Rails

Mark wrote:

> I’m working on an application that requires a process to send/receive  
> SMS messages (via email for now) outside of Rails. Right now I have  
> it working using the ActionMailer and ActiveRecord objects in my Rails  
> application.
> 
> Is it better (quicker, more scalable) to read/write to the database  
> and send/receive outside of the ActiveRecord and ActionMailer models I  
> have setup in rails?

Yes, you can make more scalable solutions outside of Rails. But…

Is the current solution not working?  
Are you having performance issues?

If not, why bother?

–  
Cheers,

- Jacob A.

---

<div class="post-metadata">

**Author:** ![mslagell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Post date:** [July 19, 2007, 2:33pm UTC](https://www.ruby-forum.com/t/re-email-outside-of-rails/109829/2 "2007-07-19T14:33:43Z")

</div>

removed\_email\_address@domain.invalid wrote:

> Yep, it absolutely works, at least on my dev box.
> 
> I’ll have to go back and check but I thought the BillMonk guys mentioned  
> something about building that part outside of Rails for performance  
> reasons.

You can replace any part of Rails for performance reasons. Rails is not  
built to be the highest performing solution on the market. The question  
is if you want to spend your time doing optimization or features.  
Personally I prefer features until a need for optimization shows up.

> I thought I would bring it up now while I’m still early enough into the  
> project.

Well, if you’re going to be handling big amounts of mail it might be  
worth going outside of Rails. Try doing some benchmarks and see what you  
get. Or it might be worth just getting more hardware. In the end you  
should do what you think is right 🙂

–  
Cheers,

- Jacob A.
