modified liaison_mail snippet