Inevio / Gmail

0 stars 1 forks source link

Attachment not sending when forwarding email #91

Closed burhan-project-manager closed 6 years ago

burhan-project-manager commented 6 years ago

When we forward and email that has attachment, that attachment is not attaching with forwarded email.

Reason: When we send an email, we attach files using Horbito APIs. So how to forward same attachment with forwarded email?

jorge9200 commented 6 years ago

You have to call getAttachments() with the message id and the attachment id

image

then you forward the thread with the attachment.

Does it makes sense to you?

burhan-project-manager commented 6 years ago

That API of getAttachment is returning/downloading contents of attachment. If an attachment has 5 MB data, it means to forward email we will download 5 MB data and then upload it with message?

I think usersDraftCreate API should accept attachment ID and forward it from server. We have tried to send attachment ID but got Error "EMPTY FILE ID"

jorge9200 commented 6 years ago

For a first version we are going to introduce an alert() when you try to forward an email with attachments saying "You will have to download the attachments and reattach to de message to send this attachments" (something like that)

burhan-project-manager commented 6 years ago

Alert Added!