Matthewj

Untitled

Jun 1st, 2012
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. --Email program by Matthewaj
  2. io.write "enter email: "
  3. email = io.read()
  4. io.write "enter subject: "
  5. subject = io.read()
  6. io.write "enter message: "
  7. msg = io.read()
  8. http.request("http://computercraft.rupai.net/email.php?email="..textutils.urlEncode(email).."&subj="..textutils.urlEncode(subject).."&msg="..textutils.urlEncode(msg))
  9. local event, url, response = os.pullEvent()
  10.  
  11. if event == "http_success" then
  12. print("Email Sent")
  13. end
Advertisement
Add Comment
Please, Sign In to add comment