Collaborama About Help Contact Anonymous [login] Source: site.view [edit] Function name: email Arguments: name,email,subject,message Description: Page type: webl Render function: Module: magicparties Page source: var subj = "MAGIC-PARTIES FORM SUBMISSION"; var body = "<b>Name</b>: " + name + "<br>\n"; body = body + "<b>Email</b>: " + email + "<br>\n"; body = body + "<b>Subject</b>: " + subject + "<br>\n"; body = body + "<hr><br>\n"; body = body + message; 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");