Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. function formSubmitReply(e) {
  2. var usuarioEmail = 'psi.danielhdez@gmail.com';
  3. var ss = SpreadsheetApp.getActiveSpreadsheet();
  4. var sheet = ss.getSheets()[1];
  5. var msg = "<p>Buen día solicito tu apoyo con el siguiente proceso:</p>"+ "<br>"+
  6.  
  7. "Fecha Nacimiento: <b>" +e.values[1]+ "</b><br>"+
  8. "Puesto: <b>" +e.values[2]+ "</b><br>"+
  9. "Salario: <b>" +e.values[3]+ "</b><br>"+
  10.  
  11. "Salario catorcenal:" +e.values[24]+ "<br>"+
  12. "Salario diario fiscal:" +e.values[25]+ "<br>"+
  13. "Salario diario fiscal integrado:" +e.values[31]+ "<br>"+
  14. "Salario fiscal catorcenal:" +e.values[28]+ "<br>"+
  15. "Salario efectivo catorcenal :" +e.values[50]+ "<br>"+
  16. "Salario diario efectivo:" +e.values[32]+ "<br>"+
  17. "Salario diario TOTAL:" +e.values[33]+ "<br>"+
  18.  
  19.  
  20. MailApp.sendEmail({
  21. to: usuarioEmail,
  22. subject: "solicitud de alta de empleado",
  23. htmlBody: msg
  24. }
  25. );
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement