Advertisement
Guest User

Untitled

a guest
Mar 31st, 2017
545
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. //It checks the header column name with the form submitted value and then assigns the corresponding value to the email variable.
  2.  
  3. var email = "";
  4.  
  5. for(var i in headers) {
  6. if (headers[i] == "email") {
  7. email = e.namedValues[headers[i]].toString();
  8. }
  9. message += headers[i] + ' :: '+ e.namedValues[headers[i]].toString() + "\n\n";
  10. }
  11.  
  12. switch (email) {
  13. case "basdf":
  14. email = "email1@hotmail.com";
  15. break;
  16. case "dfdsa":
  17. email = "email2@hotmail.com";
  18. break;
  19. default:
  20. email = "email3@hotmail.com";
  21. break;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement