Source: site.view [edit]
Function name: notifyAz
Arguments:
Description:
Page type: webl
Render function:  
Module: sandbox

Page source:

var subj = "NOTIFICATION ALERT: ALIZA";
var body = "No computer activity in the last 24 hours\n";


var APIKeyEnc = "U0cuQ2o4MVNMQlBUbGE4Sjh0Njl5Tmxtdy5halEyazRwSnhSQjFNVEFJUTViQmNyaW9HUlZDMExja3ptb29jUUh1WVJr";
var A = "Bearer " + Base64_Decode(APIKeyEnc);

var P = PostURL("https://api.sendgrid.com/api/mail.send.json", 
  [.  to="adam.cheyer@gmail.com",
      from="contact@magic-parties.com",
      subject=subj,
      html=body .],
  [. "Authorization" = A .]);


var redirect = `<head><meta http-equiv="refresh" content="0; URL='http://www.magic-parties.com'" /></head><body>Your message has been sent!</body>`;
NewPage(redirect, "text/html");