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’][email protected]
@body[‘message’]=message
@body[‘user_name’]=your_name
unless cv.blank?
attachment :body => cv.read, :filename =>
cv.original_filename
end
end
thank you…