function doPost(e) {
//this function will send emails from your gmail address
var recipient = e.parameters.recipient;
recipient = decodeURI(recipient);
var subject = e.parameters.subject;
subject = decodeURI(subject);
var body = e.parameters.body;
body = decodeURI(body);
//here is the mail app script to send emails from your gmail address to the user’s emails address
MailApp.sendEmail(recipient, subject, body);
}
Put These Block On Your Kodular Project
Or You Can Download The AIA Here Click Here You Must Put Your Deployed Web App URL Into The script_URL variable
That’s It Thank You For Visiting This Topic, The Tutorial Video Will Be Coming Soon
And Lastly Please Donate To @ct_tricks For Telling Us About This Method
What I Meant Is When You Deploy The Script As A Web App You Will Get The Web URL
Then Set The Web Component URL In Kodular With Your Google Script Web App URL
And Make Sure The Google Script Web App Has Access To Your Email Or GMail
The Text Alignment Is Not Correct If The Text Alignment Is Not Correct The Code Will Fail Because The Code Is Interpreted Wrong
The Alignment Should Be Exactly Like This Like This:
/*
Written By : Ct tricks
Date : 29/02/2020
Contact :
*/
function doPost(e) {
----//this function will send emails from your gamil address [email protected]
----var recipient = e.parameters.recipient;
----------recipient = decodeURI(recipient);
----var subject = e.parameters.subject;
----------subject = decodeURI(subject);
----var body = e.parameters.body;
----------body = decodeURI(body);
----//here is the mail app acript to send emails from your gmail address to the user’s emails address
----MailApp.sendEmail(recipient, subject, body);
}
It gives you that error because you need to deploy it as web app then access it from your app using the code that i alredy provide you. Then put the right email,subject,and body