# Can I use BackgroundRB to send mailer messages?

**URL:** <https://www.ruby-forum.com/t/can-i-use-backgroundrb-to-send-mailer-messages/144456>\
**Category:** Rails\
**Created:** [July 29, 2008, 8:34pm UTC](https://www.ruby-forum.com/t/can-i-use-backgroundrb-to-send-mailer-messages/144456 "2008-07-29T20:34:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@andy](https://www.ruby-forum.com/u/andy)\
**Post date:** [July 29, 2008, 8:34pm UTC](https://www.ruby-forum.com/t/can-i-use-backgroundrb-to-send-mailer-messages/144456/1 "2008-07-29T20:34:47Z")

</div>

In my worker, I have code that looks like this:

PostOffice.deliver\_application\_rejected(profile\_rejection.user\_id)

But it doesn’t look like the email is being sent. Any ideas?

Thanks,  
Andy

---

<div class="post-metadata">

**Author:** ![andy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/aeb1de/32.png) [@andy](https://www.ruby-forum.com/u/andy)\
**Post date:** [July 29, 2008, 8:43pm UTC](https://www.ruby-forum.com/t/can-i-use-backgroundrb-to-send-mailer-messages/144456/2 "2008-07-29T20:43:14Z")

</div>

Hi Andy,

> In my worker, I have code that looks like this:
> 
> PostOffice.deliver\_application\_rejected(profile\_rejection.user\_id)
> 
> But it doesn’t look like the email is being sent. Any ideas?

Is BackgrounDRb configured to run with the production environment?  
By default it runs in development and that could quench e-mail delivery.

–  
Roderick van Domburg

> **[De domeinnaam Nedforce.nl is te koop.](http://www.nedforce.nl)**
>
> Deze mooie domeinnaam kan al over een paar minuten van jou zijn. Betalen gaat eenvoudig en vertrouwd via iDEAL. Direct na de betaling ontvang je de verhuiscode per e-mail en kun je aan de slag.
