I am having exactly the same issue.
Looking at the output, it seems that sending with an attachment simply
overwrites the body section of the email...
Anyone know what the reason is?
(I am also running rails 2.0.2)
On Jun 18, 1:32 pm, Ryan <
miller2...@comcast.net> wrote:
> I'm running rails 2.0.2. I am trying to send anemailusing the
> ActionMailer. Theemailis delivered when sending with or without an
> attachment. My problem is that when I send an attachment, thebodyof
> theemailis blank. I only get anemailwith an attachment.
>
> I've tried a couple different ways using the attachment method:
>
> attachment :content_type => "image/jpeg",
> :body=> File.read("an-image.jpg")
>
> attachment "application/pdf" do |a|
> a.body= File.read("an-image-.jpg")