Built the message queue with java mail

I guess it will work, didn't test yet.