Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Ordering of add_file and body items causes invalid emails #6

Closed
dj2 opened this Issue · 1 comment

2 participants

@dj2

If you're adding a file attachment to an email and you don't specify the body before the add file command the mail doesn't generate correctly.

The following:

Mail.deliver do
from MAIL_FROM
to MAIL_TO
subject "blarg"
add_file :filename => outfile
body "Attached"
end

Sends:
Attached
----==_mimepart_4af86f6e8cf7b_54632413af2633860--

Where as, flipping the body and add_file lines generates a correctly attached file but with no body (which is fine as I don't actually need the body).

@mikel
Owner

Fixed in commit 26bc1c1..15894ad

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.