mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-24 11:29:30 +08:00
https://developers.google.com/apps-script/ from https://github.com/motemen/dts-google-apps-script/tree/c68a66fdd348ca5e5475355c503c0bcdb15d23b9
26 lines
952 B
TypeScript
26 lines
952 B
TypeScript
/// <reference path="google-apps-script.types.d.ts" />
|
|
|
|
declare module GoogleAppsScript {
|
|
export module Mail {
|
|
/**
|
|
* Sends email.
|
|
*
|
|
* This service allows users to send emails with complete control over the
|
|
* content of the email. Unlike GmailApp, MailApp's sole purpose is sending email. MailApp cannot
|
|
* access a user's Gmail inbox.
|
|
*
|
|
* Changes to scripts written using GmailApp are more likely to trigger a re-authorization
|
|
* request from a user than MailApp scripts.
|
|
*/
|
|
export interface MailApp {
|
|
getRemainingDailyQuota(): Integer;
|
|
sendEmail(message: Object): void;
|
|
sendEmail(recipient: string, subject: string, body: string): void;
|
|
sendEmail(recipient: string, subject: string, body: string, options: Object): void;
|
|
sendEmail(to: string, replyTo: string, subject: string, body: string): void;
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
declare var MailApp: GoogleAppsScript.Mail.MailApp; |