dougai8673 2017-09-28 00:30 采纳率: 100%
浏览 9

PHP Mailer Autoloader

i just downloaded (manually) and installed phpmailer on my shared hosting account and when i go to

<?php
require 'PHPMailerAutoload.php';

i notice that in the library i downloaded there is no PHPMailerAutoload.php, do i need to make this file ? i know it loads the dependancies for phpmailer to work but i cant find any answers on where this file is located or how to create it.

I have also tried the code below so i don't need to use the autoload file and manually call the required files but this doesn't work either. I turned errors on and get nothing from php error log that there is an issue:

<?php
define('PATH', dirname(__FILE__));


use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;

require '/home/mycpanel/public_html/domain.com/phpmailer/phpmailer/src/Exception.php';
require '/home/mycpanel/public_html/domain.com/phpmailer/phpmailer/src/PHPMailer.php';
require '/home/mycpanel/public_html/domain.com/phpmailer/phpmailer/src/SMTP.php';

Anyone have a clue what i need to do ?

Any help is much appreciated.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 Arduino红外遥控代码有问题
    • ¥15 数值计算离散正交多项式
    • ¥30 数值计算均差系数编程
    • ¥15 redis-full-check比较 两个集群的数据出错
    • ¥15 Matlab编程问题
    • ¥15 训练的多模态特征融合模型准确度很低怎么办
    • ¥15 kylin启动报错log4j类冲突
    • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
    • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序
    • ¥15 onvif+openssl,vs2022编译openssl64