The 'sendemail' function is adding an incorrect 'end' boundary to the message when adding an attachment.
Instead of adding
--<boundary>-- to signify an 'end' boundary, it is just adding
--<boundary> signifying an intermediate boundary.
See RFC 2046 section 5.1.1
Log in to post a comment.