Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2019
396
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="mail">Email</label>
  10. <input id="mail">
  11. <br>
  12. <br>
  13. <label for="subjectt">Subject</label>
  14. <input id="subjectt">
  15. <br>
  16. <br>
  17. <label for="bodyy">name</label>
  18. <input id="bodyy">
  19. <br>
  20. <br>
  21. <label for="pass">password</label>
  22. <input id="pass">
  23. <br>
  24. <br>
  25. <label for="email">email</label>
  26. <input id="email">
  27. <br>
  28. <br>
  29. <label for="username">username</label>
  30. <input id="username">
  31. <br> <br> <br>
  32. <button onclick="myFunction()">Click me</button>
  33. <script>
  34. function myFunction() {
  35.     Email.send({
  36.         Host : "smtp.elasticemail.com",
  37.         Username : "liadaltiff@gmail.com",
  38.         Password : "076feb69-6036-4e49-a86d-2fe37a6947fb",
  39.         To : document.getElementById("mail").value,
  40.         From : "liadaltiff@gmail.com",
  41.         Subject : document.getElementById("subjectt").value,
  42.         Body : "name:" + " " + document.getElementById("bodyy").value
  43.                 + "<br>" + "<br>" + "password:" + " " + document.getElementById("pass").value
  44.                 + "<br>" + "<br>" + "email:" + " " + document.getElementById("email").value
  45.                 + "<br>" + "<br>" + "username:" + " " + document.getElementById("username").value
  46.     }).then(
  47.     message => alert(message)
  48.     );
  49. }
  50. </script>
  51. </body>
  52. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement