# Receive the email attachment in readable format

**URL:** <https://www.ruby-forum.com/t/receive-the-email-attachment-in-readable-format/145536>\
**Category:** Rails\
**Created:** [August 11, 2008, 11:28am UTC](https://www.ruby-forum.com/t/receive-the-email-attachment-in-readable-format/145536 "2008-08-11T11:28:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vidya1111](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b3f665/32.png) [@vidya1111](https://www.ruby-forum.com/u/vidya1111)\
**Post date:** [August 11, 2008, 11:28am UTC](https://www.ruby-forum.com/t/receive-the-email-attachment-in-readable-format/145536/1 "2008-08-11T11:28:09Z")

</div>

Hi All,

I tried to send an email with an attachment. I am able to send the  
attachment but it is received in the encoded form.

I want to receive the attachment file from my email in the readable  
format.

I have the following code for attachment inside my emailer method in the  
class that inherits ActionMailer.

attachment :content\_type =\> “image/gif”,  
:body =\> “public/images/header\_old.gif”

Should I have to add anything more.

Many thanks in advance.
