Nidhiya / gmail-delay-send

Automatically exported from code.google.com/p/gmail-delay-send
0 stars 0 forks source link

Support attachments #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I think it should be possible. You can get the attachments from a current 
message in the form of a blob, and attach a blob to the new message, but need 
to figure out the MIME type stuff.

Original issue reported on code.google.com by blairk...@gmail.com on 29 Nov 2011 at 4:47

GoogleCodeExporter commented 9 years ago

Original comment by blairk...@gmail.com on 29 Nov 2011 at 4:48

GoogleCodeExporter commented 9 years ago
It's simpler that you expect. From the current message just 
   var attachments = currentMessage.getAttachments();
then attach to send in the args 
   GmailApp.sendEmail(....stuff, ... {attachments: attachments} )

Original comment by peter.he...@gmail.com on 2 Dec 2011 at 1:39

GoogleCodeExporter commented 9 years ago
whoa! awesome! thanks Peter!

Original comment by blairk...@gmail.com on 2 Dec 2011 at 4:37

GoogleCodeExporter commented 9 years ago
Fixed in 0.7.4 (sneak peak: 
https://docs.google.com/spreadsheet/ccc?key=0AgKSjMWgSECadDhtVVlOUXFLTmktSUdrZXB
lZjVQeEE)

With Peter's awesome suggestion (who thought it was that easy) attachments are 
working!

(the google script api documentation: 
http://code.google.com/googleapps/appsscript/class_gmailapp.html#sendEmail says 
that attachments/emails over 20K will not be send, but I was able to attach a 
multi MB picture in my testing and it worked ok. Maybe they aren't enforcing it 
yet?)

Would love to hear if other people are able to send things over the supposed 
20K limit.

Original comment by blairk...@gmail.com on 3 Dec 2011 at 6:41

GoogleCodeExporter commented 9 years ago

Original comment by blairk...@gmail.com on 18 Dec 2011 at 9:32

GoogleCodeExporter commented 9 years ago
the attachment work perfectly but embedded files are somethings else... i tried 
to send a message with embedded pictures but my sister did not see the 
pictures...thanks

Original comment by barbrown...@gmail.com on 11 Jun 2012 at 5:19

GoogleCodeExporter commented 9 years ago
Hello Barbrownium,

Sorry that the embedded pictures aren't working for you. But what exactly is an 
embedded image? Is it embedded in HTML? How can I reproduce it?

Thanks!
-Blair

Original comment by blairk...@gmail.com on 12 Jun 2012 at 7:35

GoogleCodeExporter commented 9 years ago
you know when you click that "insert image" from google labs? there would be 
two choices, attach from "my computer" or from a web-address url.. i was 
sending messages by inserting images from "my computer" but my friends are not 
seeing the pictures... i am sorry i don't know how to explain it better...

anyways, my grand son was able to teach me how to use some web based site to 
save the pictures and use the web-address url option... that worked...

thank you...

Original comment by barbrown...@gmail.com on 13 Jun 2012 at 5:16