Added mailing functionality