也许有人可以帮我解决这个问题:)
迎接迈克
$mail = new PHPMailer();
$mail->isSMTP();
$mail->Host = 'smtp.office365.com';
$mail->Port = 587;
$mail->SMTPSecure = 'tls';
$mail->SMTPAuth = true;
$mail->Username = "username";
$mail->Password = "password";
$mail->SetFrom('mymail@outlook.com', 'Me');
$mail->AddReplyTo("mymail@mydomain.com", "Me");
这是我的批次:
C:\xampp\php\php-cgi.exe C:\xampp\htdocs\bericht\sendMail2.php
答案 0 :(得分:0)
$mail = new PHPMailer();
$mail->isSMTP();
$mail->Host = 'smtp.office365.com';
$mail->Port = 587;
$mail->SMTPSecure = 'tls';
$mail->SMTPAuth = true;
$mail->Username = "username";
$mail->Password = "password";
$mail->SetFrom('mymail@outlook.com', 'Me');
$mail->AddReplyTo("mymail@mydomain.com", "Me");
这是我的批次:
C:\xampp\php\php-cgi.exe C:\xampp\htdocs\bericht\sendMail2.php