Şu sınıfı kullanın : https://code.google.com/a/apache-ext...g/p/phpmailer/
Kullanımı kolay, sorunsuzdur, ssl, tsl destekler.