replaced mailtron function call