Hi.. I try to send an email with an attachment. I could be able to send the Attachment. But it was an empty one . What could be the problem . Here is the code that i have used . Please help me to solve this problem . def send_application(company_name,your_name,your_email,subject,message,cv) @subject=subject @recipients=your_name+"<"+your_email+">" @from=your_email @body[''title'']=subject @body[''email'']=@from @body[''message'']=message @body[''user_name'']=your_name unless cv.blank? attachment :body => cv.read, :filename => cv.original_filename end end thank you.. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---