Is there anyway to make a vanilla mail system?

What I want to do is that when someone has ran a command, a tellraw text runs a command and when you press it, you can type a message to one particular person, who's offline on the server you're on.
When you have finished typing the message, the command block will activate and will tell you this message: "Mail send!".
When the receiver of your message comes online, they will get a tellraw message with a run_command saying: "You received 1 mail!", and when they click on the message it will show the message you typed for him/her.
But I don't know how to do this, I know how to do some stuff, but I don't know how to make it detect for a player when he/she says something in the chat.
Best Answer
It is not possible with vanilla command blocks to detect, nor somehow store and repeat to another player, what a player has said in chat.
As MBraedley has said, you would be better off making a system with signed books or signs.
Pictures about "Is there anyway to make a vanilla mail system?"



How do I create an auto generated email?
In Gmail, for example, you click on the "gear" icon at the top right of your Gmail page. Select "Settings" from the drop-down menu. Click "Filter." Click "Create a new filter." Enter the criteria for forwarding, such as mail being from a certain sender.How long does mail last in TBC?
TBC still have 1 hour mail, between characters of same or any account.How long does it take to get mail in TBC?
Simple messages arrive immediately. Mail from the same account, regardless of attachments, arrives immediately. Mail from another account if items or money are attached takes one hour. Mail from the Auction House to the buyer with the purchased item arrives immediately.How do I set up automatic emails in Gmail?
You can schedule your emails to send at a later time. Scheduled emails may be sent a few minutes after the scheduled time....Schedule emails to sendFunctional Email System in Minecraft!
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Matthis, RODNAE Productions, Andrea Piacquadio, Andrea Piacquadio