-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attachments support is not provided? #3
Comments
@prasadKodeInCloud Attachments is not yet implemented. I think I can implement it for you somewhere this week. If you can not wait feel free to fork this project and implement it yourself and creating a pull request for the changes |
@marcodejongh Thanks for the reply. Glad if you can implement it in this week. |
@prasadKodeInCloud Im not gonna be able to add extra features for a while because its somewhere low on our backlog. But feel free to fork and add the feature yourself |
Any news on this ? I'd love to be able to choose the name of the attached file ;) |
@jerefrer The send method of this packages is just a simple wrapper around mailgun-js taking care of a lot of oddities in the mailgun api. I've never aspired to wrap the whole of the mailgun-js api that's why I left a non private reference to the internal instance of the mailgun-js instance. This api reference you can use for stuff that isn't wrapped (yet). So the following should work:
But I do agree it's a decent request and I will definitely add wrapper code handling attachments in the future. |
Haven't time to try this just now but if Attachment is accessible is should work just fine. That's all I needed thank you :) If you don't have time to implement it properly maybe you could document this on the README for everyone to see ? |
@jerefrer Done, I've also updated the workaround to use a fiber instead of a sync readFile.. Could you tell me if it works when you do try it? |
I sure will but it won't be before a week or so. Thanks for the doc, doc :) |
it'd be great to have it working but it doesn't work like that. it even just doesn't works when I supply file data as Buffer object to the attachment property. Any ideas? Your help is really needed! Thank you. |
@shkomg What is the error you get? |
I got no error - email is send but with no attachment. Here is the code (i'm sending the PDF out);
And when I tried previously proposed solution I can't reach |
@shkomg With MailgunInstance I meant the pointer to the instance of mailgun. So it looks like you keep a instance of mailgun on |
ok, when I do this Meteor throws error:
|
@shkomg You have a getInvoice method somewhere? |
yes, all this code is in getInvoice method & that error points on this string: It happens so that Meteor.Mailgun is an object and it just doesn't have Attachment method. I also have tried to use just |
@shkomg Try:
|
here it is |
@shkomg |
@marcodejongh it works - it send's email but with no attachment :( |
@shkomg Ok I'll add the support the mailgun this weekend that will make it a lot easier |
@marcodejongh that'd be awesome! Thank you! |
@marcodejongh Great, that change in readme works! Thank you. |
@shkomg Thank you for testing my readme.md ;) |
I tried to add an attachment with:
wich did not work. The mail was sent but without attachment. Secondly, if I can make it work, is it possible to mark the attachment as an inline attachment? It's for inline images with are not shown as attachment files in the mail app. Thanks |
Hi,
Could not send attachments as per the documentation in npm 'mailgun-js' package. https://www.npmjs.org/package/mailgun-js
This feature is not implemented yet?
The text was updated successfully, but these errors were encountered: