adds mailing functionality