Convert Google Doc to pdf and send to email address -


i don't know how make this. need script convert google doc pdf , sends email (with pdf attachment) email address.

could please?

thank much!

see described here: https://developers.google.com/apps-script/reference/gmail/gmail-app#sendemail(string,string,string,object)

// send email file google drive attached pdf.  var file = driveapp.getfilebyid('1234567890abcdefghijklmnopqrstuvwxyz');  gmailapp.sendemail('mike@example.com', 'attachment example', 'please see attached file.', {      attachments: [file.getas(mimetype.pdf)],      name: 'automatic emailer script'  }); 

Comments