FormQuestions123 first - about steegle ...

17 views
Skip to first unread message

FormQuestions123

unread,
Sep 17, 2013, 11:15:42 AM9/17/13
to forme...@googlegroups.com
http://www.steegle.com/websites/google-sites-howtos/apps-script-contact-us-form-email  ,
I  saw  this  url  and  see  the  script, but,
where does it exactly begin and end ?
-

{

    var recipient = '';

    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);

  }

-
And second question for later eventually, I see  different places  like +email+   and  other
so  again the same ?  question. Is this the place whre we need  to  add our gmail  ?
-
mail eventually to  
mailbox.o...@yahoo.com,
or
gewoon...@gmail.com,
-
Reply all
Reply to author
Forward
0 new messages