Benim localhost posta göndermek için çalışıyorum ama yahoo bu garip bir hata alıyorum: -
Remote server replied: 553 Mail from 59.98.24.173 not allowed - 5.7.1 [BL21] Connections not accepted from IP addresses on Spamhaus PBL; see http://postmaster.yahoo.com/errors/550-bl21.html [550]
Ben hMailServer kullanıyorum. My ip address is dynamic and everytime i reset my modem even though i have a new ip address i still get the same message from yahoo.
Gerçekten Yahoo bıktım. Bu posta göndermek için benim kod: -
public static function sendMail($To , $Subject, $Body){
$from = 'noreply@testingmylocalhost.org';
ini_set('smtp_port',25);
ini_set('SMTP','localhost');
ini_set('sendmail_from',$from);
$headers = "From: $from\r\n";
$headers .= "Reply-To: ". $To . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=ISO-8859-1\r\n";
echo mail($To, $Subject, $Body);
}