I'm creating a function within Google Apps whereby I need to email the spreadsheet I am working on as a PDF. The user should click on a button and a dialogue box should open whereby they can enter email address, subject and message and send the email from there.
I've created the email dialogue as a sidebar with the following HTML:
<!DOCTYPE html>
<html>
<head>
<link rel = "stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css">
<base target="_top">
</head>
<body>
<form>
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" ar. ia-describedby="emailHelp" value="[email protected]">
</div>
<div class="form-group">
<label for="subject">Subject</label>
<input type="input" class="form-control" id="subject" value="Contract renewal - Miki Travel">
</div>
<div class="form-group">
<label for="subject">Message</label>
<textarea class="form-control" rows="12" id="text"></textarea>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</body>
</html>
However, when I'm writing the script to send the email, how do I store the content of the email box here as variable to use for sending the email? The same will apply obviously to the subject and the message itself.