ForeverDev

Untitled

Oct 18th, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const data = {
  2.     emailFrom: "[email protected]",
  3.     emailTo: "[email protected]",
  4.     subject: "You are under arrest.",
  5.     text: "lol xd"
  6. }
  7.  
  8. $.post("http://trevordavis.net/play/jqueryajaxform/sendemail.php", {
  9.     emailTo: data.emailTo,
  10.     emailFrom: data.emailFrom,
  11.     subject: data.subject,
  12.     message: data.text
  13. }).success(function() {
  14.     console.log("Successfully sent the following email to " + data.emailTo + ":\n\n" + data.text)
  15. })
Advertisement
Add Comment
Please, Sign In to add comment