Bazı biri yahoo smatp ve php kullanarak postalar göndermek için bana kodlarını önerebilirsiniz lütfen ..
require("class.phpmailer.php"); // be sure to change this to your location!
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "ssl"; // sets the prefix to the servier
$mail->Host = "smtp.mail.yahoo.com"; // sets yahoo as the SMTP server
$mail->Port = 25; // set the SMTP port
$mail->Username = "sumthing@yahoo.com"; // yahoo username
$mail->Password = "password"; // yahoo password
$mail->From = "sumthing@yahoo.com";
$mail->FromName = "myname";
$mail->AddAddress("you@example.com");
$mail->Subject = "Test PHPMailer Message";
$mail->Body = "Hi! \n\n This was sent with phpMailer_example3.php.";
if(!$mail->Send()) {
echo 'Message was not sent.';
echo 'Mailer error: ' . $mail->ErrorInfo;
} else {
echo 'Message has been sent.';
}
Bu kod "'SMTP sunucusuna bağlanmak olamazdı bana Hataların veriyor.