Thanks for the replies. Ive had this problem since I went to php 7 , everything else is fine except email which like you Cyber was working till this point without any changes.. Its been a wile now. I have contacted my host, we did a few tests and sure enough their script is working fine, same server.