Skip to content

federico-digital/pdf-to-email-from-google-doc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Send a Google document as PDF attachment by email

Automatically create a PDF from a Google document and send it via email.

  1. Open a new Google document

  2. Click on 'Tools > Script editor'

  3. Copy the code in this repository in new scripts files inside your new App Script project

  4. In the pdf.gs code, substitute:

    1. [INSERT EMAIL] at line 12 with the recipient / recipients of the email (if multiple, separate emails with comma)
    2. [INSERT IMAGE URL] at line 13 with the URL of the image you want to include in the email body after text
    3. [INSERT EMAIL SUBJECT] at line 16 with the desired email subject
    4. The text of the string at line 17 with your own text; this will be the email content, the HTML tag
      serves as line break
    5. [EMAIL SENDER VISUALIZED NAME] at line 20 with the desired sender's name
    6. "Hello" at line 26 with the desired fallback body text, for devices uncapable of rendering HTML
  5. Save all files in the App Script project and close it

  6. Refresh the document page, update its content and click on the menu to 'Email > Send PDF'

  7. Your document will automatically be exported in PDF and sent to the recipients specified in pdf.gs

About

Automatically create a PDF from a Google document and send it via Gmail

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published