亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

There was an error when submitting data through phpmailer in Thinkphp and sending the data to the mailbox.
曾經(jīng)蠟筆沒(méi)有小新
曾經(jīng)蠟筆沒(méi)有小新 2017-05-16 12:59:30
0
6
611

My "PHPMailer" folder is placed in the Vendor in the Library inside the Thinkphp framework.
The browser error is:

But when the cursor is positioned at the call point of the SendMail function, press ctrl left-click, and the function can be positioned at the function definition point.

曾經(jīng)蠟筆沒(méi)有小新
曾經(jīng)蠟筆沒(méi)有小新

reply all(6)
黃舟

vendor('PHPMailer/class.phpmailer');

我想大聲告訴你

vendor('file entry name');

黃舟
require_once($_SERVER['DOCUMENT_ROOT']."/PHPMailer/class.phpmailer.php")

Try quoting like this (the path must be written completely)

過(guò)去多啦不再A夢(mèng)

Is it tp3?
The error you reported means that the class was not instantiated.

Vendor('PHPMailer.PHPMailerAutoload');
$mail = new PHPMailer(); //實(shí)例化
$mail->sendmail(...);
世界只因有你

Vendor('PHPMailer.PHPMailerAutoload');
$mail = new PHPMailer(); //Instantiation

世界只因有你

The problem is that the sendmailer function is written in the function.php file and cannot be written in the common.php file. This way you can call it.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template