Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- rednet.broadcast("readmail")
- a, messagep = rednet.receive(1)
- if messagep == null then
- else
- print(" Mail Received!")
- print("+--------------+")
- print(messagep)
- end
- write("Compose new email?")
- input = read()
- if input == "yes" then
- rednet.broadcast("sendmail")
- write("To: (in ID) ")
- input = read()
- rednet.broadcast(input)
- print("Message body:")
- input = read()
- rednet.broadcast(input)
- end
Advertisement
Add Comment
Please, Sign In to add comment