PHPMAILcannot sendmail mantbt2.25.7 php8.1.7

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
wrzeng
Posts: 2
Joined: 12 May 2023, 03:55

PHPMAILcannot sendmail mantbt2.25.7 php8.1.7

Post by wrzeng »

Settings the following ,but cann't send email
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.163.com';
$g_smtp_username = 'testtest';
$g_smtp_password = 'EXFMFYHLWOABDWZE';
$g_enable_email_notification = ON;
$g_send_reset_password = ON;
$g_lost_password_feature = ON;
$g_max_lost_password_in_progress_count = 10;
$g_smtp_port = 994;
$g_smtp_connection_mode = 'ssl';
$g_webmaster_email = 'testtest@163.com';
$g_from_email = 'testtest@163.com';址
$g_return_path_email = 'testtest@163.com';
$g_from_name = 'MantisBt Bug Tracker';
$g_administrator_email='testtest@163.com';
$g_use_phpMailer = ON;
sendmail.php Setting as the following ,Send success!!!
//Server settings
$mail->SMTPDebug = 2;
$mail->isSMTP();
$mail->Host = 'smtp.163.com';
$mail->SMTPAuth = true;
$mail->Username = 'testtest@163.com';
$mail->Password = 'EXFMFYHLWOABDWZE';#跟

$mail->SMTPSecure = 'ssl';
$mail->Port = 994;
$mail->CharSet='UTF-8';

//发件人
$mail->setFrom('testtest@163.com', 'Mailer');

//收件人。多收件人可设置多个addAddress
$mail->addAddress('testtest1@163.cn', 'testtest1');//收件人邮箱地址,收件人姓名(选填)




//邮件内容
$mail->isHTML(true); // 发送html格式邮件
$mail->Subject = '标题'; //邮件标题
$mail->Body = '邮件测试内容 <b>hello.</b>';
Post Reply