markhuge / grunt-mailgun

MIT License
8 stars 8 forks source link

Feature Request: Sending Attachments #9

Open j0xhn opened 9 years ago

j0xhn commented 9 years ago

I'm trying to send an attachment in an email. Is that feature planned to be made or what are your thoughts?

markhuge commented 9 years ago

I don't think that's a capability of the upstream mailgun module I'm depending on. It may support it as part of the raw send, in which case I can totally add this functionality.

How would you propose to attach the file from inside the grunt task? Is it a static file whose path is being defined in the options, or is it something dynamic that will change for each template? If the latter, can you give me an example of how you'd want that to work?

j0xhn commented 9 years ago

Well... for my purposes it could be either because I would like to send the email to someone and have it appear as is, but also have the inline html attached for them to download. So the same email I'm sending I'd also like to be the attachment.

However, I think it would be better to just pass in the path to the static file. Really it would be whatever's easiest, but if it's the same to you then I'd rather just pass in the specific file's path and have full control over that.