gmail.js icon indicating copy to clipboard operation
gmail.js copied to clipboard

On before_send, add a attachment in mail ?

Open nmarques-ext-delfingen opened this issue 8 years ago • 9 comments

Hi,

I was wondering if there was a way to attach a file before sending a composing mail ?

nmarques-ext-delfingen avatar Jun 24 '16 12:06 nmarques-ext-delfingen

I'm also looking for a way to add attachments to an email, is there a way to achieve this?

dariospadoni avatar Oct 03 '16 15:10 dariospadoni

Hey , did you find a solution for this issue maybe ? Did we can change the attachment content after gmail.observe.on("upload_attachment", function(file, xhr) {..} method ? I try to make some changes to file argument but nothing change ( for example change the name of file for start ,later complex things... )

OriAmir avatar Oct 11 '16 09:10 OriAmir

I have not put too much effort into this (tried it once a year ago) but wasn't able to trigger a file upload programmatically. From my side at least, there is currently no way to do this (yet)

KartikTalwar avatar Oct 11 '16 18:10 KartikTalwar

Thanks for your answer @KartikTalwar . If it's nos possible yet to upload a new file progrmmatically maybe there is some way to change the current file that already upload - name , content e.t.c . I don't find any relevant information in the internet and here about this ):

OriAmir avatar Oct 13 '16 13:10 OriAmir

I put this question also in stackoverflow

I hope that we can get some answer for this

OriAmir avatar Oct 23 '16 08:10 OriAmir

How does inboxsdk do this then? I tested myself using their api and it works flawlessly. Both for inline images and external attachments. https://www.inboxsdk.com/docs/#Compose

whather avatar Jan 29 '17 23:01 whather

How does inboxsdk do this then? I tested myself using their api and it works flawlessly. Both for inline images and external attachments. https://www.inboxsdk.com/docs/#Compose

As someone completely unfamiliar with InboxSDK, that's hard to answer.

From my cursory glance, it seems that the InbocSDK is completely closed source and that the InboxSDK.js you are provided as a registered application-developer/API-consumer is merely a shim which loads the actual InboxSDK code dynamically.

Without someone providing me with the loaded InboxSDK code, I cannot answer that question.

josteink avatar Jan 31 '17 10:01 josteink

Since I haven't heard anything new on this issue, I'm considering closing it.

Unless anyone has anything new to offer, this will be closed in the near future.

josteink avatar Feb 10 '17 20:02 josteink

Hi, I was looking for attachment feature from gmailJS. Could you please let me know if anybody had implemented it / able to found how inboxsdk has implemented it. Thanks in Advance.

shashikiran-im avatar Mar 13 '18 11:03 shashikiran-im

Old issue is old. Closing.

josteink avatar Oct 11 '23 08:10 josteink