Try using GmailApp.sendEmail()
// The code below will send an email with the current date and time.
var now = new Date();
GmailApp.sendEmail("[email protected]", "current time", "The time is: " + now.toString());
which is the recommended one now.
More Related Contents:
- Moving google apps script to v8 file upload stopped working from sidebar
- How to automatically import data from uploaded CSV or XLS file into Google Sheets
- No permission to call msgBox in Google Apps Scripting
- How to define global variable in Google Apps Script
- How can I generate a multipage text document from a single page template in google-apps-script?
- Periodically refresh IMPORTXML() spreadsheet function
- Export (or print) with a google script new version of google spreadsheets to pdf file, using pdf options
- Transfer ownership of a file to another user in Google Apps Script
- Format a Google Sheets cell in plaintext via Apps Script
- UiApp has been deprecated. Please use HtmlService instead
- How to get form values in the submit event handler?
- Google app scripts: email a spreadsheet as excel
- Is there a way to keep two sheets synchronized?
- Selecting the last value of a column
- How to use the Gmail API, OAuth2 for Apps Script, and Domain-Wide Delegation to set email signatures for users in a G Suite domain
- How to get filtered values from Filter after using setColumnFilterCriteria?
- GAS “On edit” trigger not running when edited from API
- Difference between getValue() and getDisplayValue() on google app script
- How to allow onEdit function to affect protected cell in a Google Sheet?
- Call a function from external URL
- Measurement of execution time of built-in functions for Spreadsheet
- Google Spreadheets Scripts: check if cell is empty
- How do I create a file in a folder?
- How to prefill Google form checkboxes?
- Shuffle answer properties
- Use script in all spreadsheets
- Custom Functions and Recalculation
- inject external javascript file in google app script(Google Docs) [closed]
- Can the google spreadsheet ‘query’ function be used in google apps script?
- Redirect after submitting Google Form