add mailing functionality