カスタム Live ドメインを使用して phpmailer でメールを送信しようとしています。
$mail->host
と$mail->Port
私が使用しているが正しいかどうかを知りたいです。
エラーは次のとおりです。
メーラー エラー: 次の From アドレスに失敗しました: yyy@xxxx.com : 接続せずに Mail() を呼び出しました
これが私のコードです:
require("../PHPMailer_5.2.4/class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "mail.live.com"; // SMTP server
$mail->SMTPDebug = 0; // enables SMTP debug information (for testing)
// 1 = errors and messages
// 2 = messages only
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "ssl"; // sets the prefix to the servier
$mail->Host = "smtp.live.com"; // sets GMAIL as the SMTP server
$mail->Port = 465;