1lobby/mailgun-js — pull request #36 by jfaissolle (2014-05-23 14:25:10+00:00)
Title: support passing in filename option for file attachments

Hello,

I need to attach files to mails with a different name than the filesystem one. I initially thought that it was possible but only `Buffer` type objects are supported in `Mailgun.Attachment`. This change allows passing either a file path or a `Buffer`.

As a side note, it would be really cool to directly send streams (from database) as attachments.

Regards