eleith/emailjs — pull request #17 by mscdex (2011-12-04 01:53:57+00:00)
Title: Fix for issue #16

Here's something I came up with for setting custom headers for attachments.

message.attach() now accepts an object instead of multiple parameters (still backwards compatible with the current signature though). This object's 'headers' property is simply an object containing the header=>value pairs to be inserted into the attachment's header.