# Inline\_attachment in ActionMailer

**URL:** <https://www.ruby-forum.com/t/inline-attachment-in-actionmailer/142568>\
**Category:** Rails\
**Created:** [July 9, 2008, 9:53am UTC](https://www.ruby-forum.com/t/inline-attachment-in-actionmailer/142568 "2008-07-09T09:53:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/82dd89/32.png) [@ssk](https://www.ruby-forum.com/u/ssk)\
**Post date:** [July 9, 2008, 9:53am UTC](https://www.ruby-forum.com/t/inline-attachment-in-actionmailer/142568/1 "2008-07-09T09:53:35Z")

</div>

Hi,

I need to embed images in email that I send from rails app.  
ActionMailer seems to support only part and attachment.(Is it true?)  
So I’m trying to use inline\_attachment gem.  
My hosting server doesn’t have the gem. (and I don’t have the root  
privilege)  
I tried to unpack the gem (rake gems:unpack) on my computer after  
installing it.  
But it doesn’t unpack (no error, though).

I added it to my environment.rb like config.gem ‘inline\_attachment’.  
I verified that the gem works in irb.

Why doesn’t gems:unpack work?

Thanks.

Sam

---

<div class="post-metadata">

**Author:** ![ssk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/82dd89/32.png) [@ssk](https://www.ruby-forum.com/u/ssk)\
**Post date:** [July 9, 2008, 11:07am UTC](https://www.ruby-forum.com/t/inline-attachment-in-actionmailer/142568/2 "2008-07-09T11:07:21Z")

</div>

Because it unpacks gems which are installed into your local directory  
structure so that you carry a copy with your project. Unpacking will  
do nothing if you dont have the gem installed already.

j

---

<div class="post-metadata">

**Author:** ![ssk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/82dd89/32.png) [@ssk](https://www.ruby-forum.com/u/ssk)\
**Post date:** [July 9, 2008, 5:12pm UTC](https://www.ruby-forum.com/t/inline-attachment-in-actionmailer/142568/3 "2008-07-09T17:12:48Z")

</div>

Hi Wolas!

“Wolas!” wrote:

> Because it unpacks gems which are installed into your local directory  
> structure so that you carry a copy with your project. Unpacking will  
> do nothing if you dont have the gem installed already.

I mensioned that I installed it on my computer.

> > I tried to unpack the gem (rake gems:unpack) on my computer after  
> > installing it.

Sam
