contactUsMail
- - - - - -
"
sites.google.com" contact form
https://sites.google.com/site/pbpcontactform/https://sites.google.com/a/steegle.com/steegle/websites/google-sites-howtos/apps-script-contact-us-form-emailhttps://sites.google.com/a/steegle.com/steegle/websites/google-sites-howtos/apps-script-contact-us-form-email#TOC-The-Formfunction nl2br_(input_string){ -------IS THIS ALSO A PART FROM THE SCIPT?
return input_string.replace(/(\r\n|\r|\n)/g,'<br />'); -------IS THIS ALSO A PART FROM THE SCIPT?
} -------IS THIS ALSO A PART FROM THE SCIPT?
- - - - - - -
function contactUsMailer(e) { -------IS THIS ALSO A PART FROM THE SCIPT?
- - - - - - -
{ .................................................................-------IS THIS ALSO A PART FROM THE SCIPT?
var recipient = ' ( my)
email...@gmail.com';
var timestamp = e.values[0];
var name = e.values[1];
var email = e.values[2];
var message = e.values[3];
var body = name+' <'+email+'> sent the following message: '+message;
var bodyHTML = '\
<p>'+name+' <a href="mailto:'+email+'">'+email+'</a> sent the following message: </p>\
<blockquote>'+nl2br_(message)+'</blockquote>\
<p>Sent by the <a
href="
http://www.steegle.com/">Steegle.com</a> Contact Us Form
Google Apps Script</p>';
var advancedArgs = {htmlBody:bodyHTML , replyTo:email};
MailApp.sendEmail(recipient, "Contact Us Form", body, advancedArgs);
} catch(e){
MailApp.sendEmail(recipient, "Error - Contact Us Form", e.message);
}
}
- - - - - - -
function contactUsMailer(e) {
// This script e-mails the contents of a form to a given recipient
// The form must have three fields in the order of: name; e-mail address; and message
// You must change the recipient variable below to your e-mail address
try {
var recipient = ' ( my)
email...@gmail.com';
var timestamp = e.values[0];
var name = e.values[1];
var email = e.values[2];
var message = e.values[3];
var body = name+' <'+email+'> sent the following message: '+message;
var bodyHTML = '\
<p>'+name+' <a href="mailto:'+email+'">'+email+'</a> sent the following message: </p>\
<blockquote>'+nl2br_(message)+'</blockquote>\
<p>Sent by the <a href="
http://www.steegle.com/">Steegle.com</a> Contact Us Form Google Apps Script</p>';
var advancedArgs = {htmlBody:bodyHTML , replyTo:email};
MailApp.sendEmail(recipient, "Contact Us Form", body, advancedArgs);
} catch(e){
MailApp.sendEmail(recipient, "Error - Contact Us Form", e.message);
}
}
- - - - - -
contact me eventually with email
gewoon...@gmail.com- - - - - -