titounnes

email with gas

Apr 14th, 2021
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. function doPost(e){
  2. var subject = e.postData.subject;
  3. var mailto = e.postData.mailto;
  4. var htmlBody = 'kode html untuk body email';
  5. //bisa ditambahkan token untuk mencegah orang yang tak berhak
  6. MailApp.sendEmail({to:mailto,subject: subject, htmlBody:htmlBody});
  7. }
Advertisement
Add Comment
Please, Sign In to add comment