server side email stuff reference for pita