mailing

added mailing functionality