Added the php generic emailer function