Aldığınız hata nedir php class mailler kullandınız mı ? Mail server ayarlarını doğru yapıyormusunuz ? ( Port ssl v.s. )