# Any plugin to send email asyncronously in the background

**URL:** <https://www.ruby-forum.com/t/any-plugin-to-send-email-asyncronously-in-the-background/165991>\
**Category:** Rails\
**Created:** [April 20, 2009, 7:02pm UTC](https://www.ruby-forum.com/t/any-plugin-to-send-email-asyncronously-in-the-background/165991 "2009-04-20T19:02:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@ajay](https://www.ruby-forum.com/u/ajay)\
**Post date:** [April 20, 2009, 7:02pm UTC](https://www.ruby-forum.com/t/any-plugin-to-send-email-asyncronously-in-the-background/165991/1 "2009-04-20T19:02:00Z")

</div>

We would like to queue our emails and send them outside of the  
application using an external SMTP provider. Any plugin out there which  
will do this for us? I would like to explore before we go all out &  
write our own.

aj

---

<div class="post-metadata">

**Author:** ![ajay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@ajay](https://www.ruby-forum.com/u/ajay)\
**Post date:** [April 20, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/any-plugin-to-send-email-asyncronously-in-the-background/165991/2 "2009-04-20T19:35:15Z")

</div>

delayed\_job [0] is a nice plugin to do things in the background.

mx.

[0] [http://github.com/tobi/delayed\_job/tree/master](http://github.com/tobi/delayed_job/tree/master)

On Apr 20, 7:02 pm, Ajaya A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![ajay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@ajay](https://www.ruby-forum.com/u/ajay)\
**Post date:** [April 20, 2009, 8:05pm UTC](https://www.ruby-forum.com/t/any-plugin-to-send-email-asyncronously-in-the-background/165991/3 "2009-04-20T20:05:14Z")

</div>

On Apr 20, 6:02 pm, Ajaya A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> We would like to queue our emails and send them outside of the  
> application using an external SMTP provider. Any plugin out there which  
> will do this for us? I would like to explore before we go all out &  
> write our own.

ar\_mailer does something like this.

Fred

---

<div class="post-metadata">

**Author:** ![ajay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@ajay](https://www.ruby-forum.com/u/ajay)\
**Post date:** [April 20, 2009, 9:39pm UTC](https://www.ruby-forum.com/t/any-plugin-to-send-email-asyncronously-in-the-background/165991/4 "2009-04-20T21:39:27Z")

</div>

On 20 Apr., 19:02, Ajaya A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> We would like to queue our emails and send them outside of the  
> application using an external SMTP provider. Any plugin out there which  
> will do this for us? I would like to explore before we go all out &  
> write our own.
> 
> aj

You can also take a look at this episode of Railscasts:  
[#129 Custom Daemon - RailsCasts](http://railscasts.com/episodes/129-custom-daemon) Making your own  
daemon to run in the background is surprisingly easy.

–  
Best regards,  
David K.  
[http://twitter.com/perplect](http://twitter.com/perplect)

---

<div class="post-metadata">

**Author:** ![ajay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@ajay](https://www.ruby-forum.com/u/ajay)\
**Post date:** [April 20, 2009, 10:27pm UTC](https://www.ruby-forum.com/t/any-plugin-to-send-email-asyncronously-in-the-background/165991/5 "2009-04-20T22:27:57Z")

</div>

Ajaya A. wrote:

> We would like to queue our emails and send them outside of the  
> application using an external SMTP provider. Any plugin out there which  
> will do this for us? I would like to explore before we go all out &  
> write our own.
> 
> aj

thank you all for your suggestions. Instead of creating another queuing  
solution for email, i went back to default sendmail to send email &  
configured sendmail to use an external authenticated SMTP server to  
relay the email.

[http://www.phinesolutions.com/sendmail-gmail-smtp-relay-howto.html](http://www.phinesolutions.com/sendmail-gmail-smtp-relay-howto.html)

Thanks

AJ

---

<div class="post-metadata">

**Author:** ![ajay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@ajay](https://www.ruby-forum.com/u/ajay)\
**Post date:** [April 20, 2009, 10:30pm UTC](https://www.ruby-forum.com/t/any-plugin-to-send-email-asyncronously-in-the-background/165991/6 "2009-04-20T22:30:28Z")

</div>

I used Spawn ([http://blog.sidu.in/2008/06/spawn-reliable-background-](http://blog.sidu.in/2008/06/spawn-reliable-background-)  
processing.html) _really_ easy to setup. Don’t expect any great  
control though.
