Smtp servisini localhost'tan mı çalıştırıyorsunuz? Smtp server'e ip yazıp, portu 25 ise 587 veya ssl portu üzerinden göndermeyi deneyin bir de.