# Problem in send an attachment

**URL:** <https://www.ruby-forum.com/t/problem-in-send-an-attachment/139368>\
**Category:** Rails\
**Created:** [June 3, 2008, 10:09am UTC](https://www.ruby-forum.com/t/problem-in-send-an-attachment/139368 "2008-06-03T10:09:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shani1984](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e99b99/32.png) [@shani1984](https://www.ruby-forum.com/u/shani1984)\
**Post date:** [June 3, 2008, 10:09am UTC](https://www.ruby-forum.com/t/problem-in-send-an-attachment/139368/1 "2008-06-03T10:09:16Z")

</div>

Hi…  
I try to send an attachment with a mail. I could be able to send the  
attachment. But the problem is it is an empty one. What can be the  
problem … Please help me out this…  
following is the code that i have used .

unless cv.blank?  
attachment :body =\> cv.read, :filename =\>  
cv.original\_filename  
end

{cv=my pdf location}

Thank you.
