0
我想用PHPMailer
發送電子郵件。但是,第一步我只想檢查用戶的密碼是否正確。如果它是正確的,下一步是通知用戶編寫收件人的電子郵件地址。例如:如何僅使用PHPMailer來檢查登錄密碼?
<?php
include('snail_database.txt');
require_once('/var/www/PHPMailer_5.2.4/class.phpmailer.php');
$mail = new PHPMailer();
$mail -> CharSet='utf-8';
$mail -> IsSMTP();
$mail -> SMTPAuth = true;
$mail -> Host = $server;
$mail -> Port = 25;
$mail -> From = '[email protected]';
$mail -> FromName = 'try';
$mail -> Username = 'try';
$mail -> Password = 'try';
//then check whether this password and email addresses correct without sending email to others.
//Which function can be used to check this only?
?>