# Send attached tar.gz file on rails email

**URL:** <https://www.ruby-forum.com/t/send-attached-tar-gz-file-on-rails-email/196998>\
**Category:** Rails\
**Created:** [September 10, 2009, 2:25pm UTC](https://www.ruby-forum.com/t/send-attached-tar-gz-file-on-rails-email/196998 "2009-09-10T14:25:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vellingiri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5fc32e/32.png) [@vellingiri](https://www.ruby-forum.com/u/vellingiri)\
**Post date:** [September 10, 2009, 2:25pm UTC](https://www.ruby-forum.com/t/send-attached-tar-gz-file-on-rails-email/196998/1 "2009-09-10T14:25:52Z")

</div>

How to send attached tar.gz file on ruby mail sending. If anyone aware  
already, please let me know.

Regards,  
S.Vellingiri.

---

<div class="post-metadata">

**Author:** ![vellingiri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5fc32e/32.png) [@vellingiri](https://www.ruby-forum.com/u/vellingiri)\
**Post date:** [September 10, 2009, 2:47pm UTC](https://www.ruby-forum.com/t/send-attached-tar-gz-file-on-rails-email/196998/2 "2009-09-10T14:47:01Z")

</div>

2009/9/10 Arul hari [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> How to send attached tar.gz file on ruby mail sending. If anyone aware  
> already, please let me know.

Better to use pastie ([http://pastie.org/](http://pastie.org/)) and post url here.

Colin

---

<div class="post-metadata">

**Author:** ![vellingiri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5fc32e/32.png) [@vellingiri](https://www.ruby-forum.com/u/vellingiri)\
**Post date:** [September 10, 2009, 7:55pm UTC](https://www.ruby-forum.com/t/send-attached-tar-gz-file-on-rails-email/196998/3 "2009-09-10T19:55:55Z")

</div>

Colin L. wrote:

> 2009/9/10 Arul hari [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
> 
> > How to send attached tar.gz file on ruby mail sending. If anyone aware  
> > already, please let me know.
> 
> Better to use pastie ([http://pastie.org/](http://pastie.org/)) and post url here.

I think the OP was asking how to send a tarball attachment from a Rails  
app…

> Colin

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![vellingiri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/5fc32e/32.png) [@vellingiri](https://www.ruby-forum.com/u/vellingiri)\
**Post date:** [September 11, 2009, 7:36pm UTC](https://www.ruby-forum.com/t/send-attached-tar-gz-file-on-rails-email/196998/4 "2009-09-11T19:36:59Z")

</div>

You could either look into sending it as a MIME attachment (see the  
ActionMailer docs), or put it in a subdirectory of public/ on your app  
server and include a URL.

However, you should also consider that unless your recipients are OSX/  
Linux users, they’re going to need extra software to open the file, as  
Windows doesn’t support those formats natively.

–Matt J.

On Sep 10, 8:25 am, Arul hari [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
