Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //It checks the header column name with the form submitted value and then assigns the corresponding value to the email variable.
- var email = "";
- for(var i in headers) {
- if (headers[i] == "email") {
- email = e.namedValues[headers[i]].toString();
- }
- message += headers[i] + ' :: '+ e.namedValues[headers[i]].toString() + "\n\n";
- }
- switch (email) {
- case "basdf":
- email = "email1@hotmail.com";
- break;
- case "dfdsa":
- email = "email2@hotmail.com";
- break;
- default:
- email = "email3@hotmail.com";
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement