Posts

Showing posts from October, 2023

How to Send Base64 Images in Email with Google Apps Script

Base64-encoded images can be embedded directly inside HTML emails without having to host the image on a remote server. This offers several advantages: Avoids tracking - External images are often used by email marketers to track email opens . Reduced spam potential - Some email servers may reject emails that contain external images. No broken images - If the image is hosted on a remote server, it may not load if the server is down. Gmail, however, does not support base64 images in HTML emails. If you try to send an email with base64 images to a Gmail or Google Workspace account, the image will not be displayed in the email body but will be displayed as an attachment instead. The workaround is to convert the base64 image to a blob and then embed the blob in the email. We use a similar technique to embed base64 encoded images in emails sent from Mail Merge and Document Studio . The following Google Apps Script function will convert all base64 images in an HTML email to blobs and ...

Monitor Your Stock Portfolio with Google Sheets and Receive Daily Email Reports

Image
I have a Stock tracker spreadsheet built inside Google Sheets that keeps track of my fictional stock portfolio. The stock prices in the Google Sheet are updated automatically using the GOOGLEFINANCE function . I would like to set up a daily trigger that runs every day at, say 4pm, and sends me an email with the screenshot of the spreadsheet. This way I can keep track the performance of my stocks without having to open the spreadsheet every day. Let’s see how this process can be easily automated with the help of Email Google Sheets add-on. Inside your Google Sheet, go to Extensions > Email Google Sheets > Open to launch the app. Click on the Create Workflow button to create a new automation workflow that will send you an email with the screenshot of the spreadsheet. Go to the Email step of the workflow and put the email address of the recipients in the To, Cc and Bcc fields. You can then add a custom subject and message in the email to include values from the spreadsheet. ...