I wrote a script to format the text that input on Google Forms and send it by email. The email could be sent but the email address of the user who entered the text cannot be set in the From: header.
I already read the Google Apps Script API documentation. And, I already know when I use the Gmail Apps class to send emails, I can set only the Google Form owner's email address in the "From:" header.
var options = {from: Session.getActiveUser().getEmail()};
GmailApp.sendEmail(to_address, subject, message, options);
I want to set the email address of the user who entered the text in the From: header. However, my email address who is the owner of the form is set.