copied mail from frontend/runtime/mail to CI