# Re: How to send SMTP emails in background

**URL:** <https://www.ruby-forum.com/t/re-how-to-send-smtp-emails-in-background/131977>\
**Category:** Rails\
**Created:** [March 14, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/re-how-to-send-smtp-emails-in-background/131977 "2008-03-14T20:47:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyler\_MacDonald](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b5ac83/32.png) [@Tyler\_MacDonald](https://www.ruby-forum.com/u/Tyler_MacDonald)\
**Post date:** [March 14, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/re-how-to-send-smtp-emails-in-background/131977/1 "2008-03-14T20:47:50Z")

</div>

John,  
If you are on a linux system, pipe the email to sendmail instead. It  
will take care of the queueing, etc for you and will send it by SMTP  
itself,  
instead of your module having to rely on an SMTP connection. It looks  
like  
ActionMailer::Base has a “delivery\_method” option, if you set it to  
“sendmail” it should just start piping them out via sendmail instead of  
SMTP.

- Tyler

John S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> >

–
