LDShadowLord

Mail Client

Oct 10th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rednet.open("right")
  2. rednet.broadcast("readmail")
  3. a, messagep = rednet.receive(1)
  4. if messagep == null then
  5.   else
  6.   print(" Mail Received!")
  7.   print("+--------------+")
  8.   print(messagep)
  9. end
  10. write("Compose new email?")
  11. input = read()
  12. if input == "yes" then
  13.   rednet.broadcast("sendmail")
  14.   write("To: (in ID) ")
  15.   input = read()
  16.   rednet.broadcast(input)
  17.   print("Message body:")
  18.   input = read()
  19.   rednet.broadcast(input)
  20. end
Advertisement
Add Comment
Please, Sign In to add comment