I am using the app script gsender library to send an email. What are the properties of the object passed to the doPost function? Where do I find the documentation of gsender?
function doPost(e)
{
return gsender.sendGmail(e) ;
}
I am using cURL to POST to the google app script web app URL. I am setting the email
, subject
and body
properties. Where to find a list of all the properties? For example, how to attach files to the sent email.
$url = "https://script.google.com/macros/s/AwwwwwwIssssssssssddddddds8/exec";
$ch = curl_init($url) ;
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_POSTFIELDS => http_build_query([
"recipient" => $_POST['email'],
"subject" => $_POST['subject'],
"body" => $_POST['body']
])
]) ;
$result = curl_exec($ch) ;