I am new to GAS and Gmail API and trying to trigger emails from Google spreadsheet using Google Apps Script with Gmail API.
My question is that, is it possible to send emails after including the user's Gmail signature in the email?
So I want to know if I can access my signature from my Gmail Account and send the email along with it. Is it possible with Gmail API and apps script ?
Here is what I got so far.
https://developers.google.com/admin-sdk/email-settings/#manage_signature_settings - DEPRECATED so below link should work
https://developers.google.com/gmail/api/v1/reference/users/settings/sendAs
From the above link I think I should use the sendAs resource. Not sure how I can trigger email.
I would really appreciate if someone can show me a test email using Google Apps Script and Gmail API which includes signature. The email can be with plain text.
Thanks again. I am really in need of this. Please help me.
GmailApp
Class rather thanMailApp
. More here on using the Gmail API in Spreadsheets. – BrianGmailApp
Class. You'll need to use the Advanced Google Services in the answer below. – Brian