[IMP] mail: added JSON end-point to receive mails.