entity function add to senmail