implemented custom email