Hi guys, I was wondering if someone could help me with my problem. So, I have a problem with the configuration of my phpMailer, everything is correctly inserted in the mail.php code. Every time I try to check if it is working, this comes up:
Warning: require(): open_basedir restriction in effect. File(PHPMailer/PHPMailerAutoload.php) is not within the allowed path(s): (/home/user/:/tmp:/var/tmp:/opt/alt/php81/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php81/lib/php/) in /home/user/domains/domain.com/public_html/PhpMailer/mail.php on line 2
Warning: require(PHPMailer/PHPMailerAutoload.php): failed to open stream: Operation not permitted in /home/user/domains/domain.com/public_html/PhpMailer/mail.php on line 2
Warning: require(): open_basedir restriction in effect. File(PHPMailer/PHPMailerAutoload.php) is not within the allowed path(s): (/home/user/:/tmp:/var/tmp:/opt/alt/php81/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php81/lib/php/) in /home/user/domains/domain.com/public_html/PhpMailer/mail.php on line 2
Warning: require(PHPMailer/PHPMailerAutoload.php): failed to open stream: Operation not permitted in /home/user/domains/domain.com/public_html/PhpMailer/mail.php on line 2
Fatal error: require(): Failed opening required 'PHPMailer/PHPMailerAutoload.php' (include_path='.:/opt/alt/php74/usr/share/pear') in /home/user/domains/domain.com/public_html/PhpMailer/mail.php on line 2
So, I have tried many solutions, however, I think maybe the problem lies in the server settings, but I don't know why and what to change. Otherwise, the problems lie in the code. If anyone is able to help me, I would appreciate it.
Warning: require(): open_basedir restriction in effect. File(PHPMailer/PHPMailerAutoload.php) is not within the allowed path(s): (/home/user/:/tmp:/var/tmp:/opt/alt/php81/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php81/lib/php/) in /home/user/domains/domain.com/public_html/PhpMailer/mail.php on line 2
Warning: require(PHPMailer/PHPMailerAutoload.php): failed to open stream: Operation not permitted in /home/user/domains/domain.com/public_html/PhpMailer/mail.php on line 2
Warning: require(): open_basedir restriction in effect. File(PHPMailer/PHPMailerAutoload.php) is not within the allowed path(s): (/home/user/:/tmp:/var/tmp:/opt/alt/php81/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php81/lib/php/) in /home/user/domains/domain.com/public_html/PhpMailer/mail.php on line 2
Warning: require(PHPMailer/PHPMailerAutoload.php): failed to open stream: Operation not permitted in /home/user/domains/domain.com/public_html/PhpMailer/mail.php on line 2
Fatal error: require(): Failed opening required 'PHPMailer/PHPMailerAutoload.php' (include_path='.:/opt/alt/php74/usr/share/pear') in /home/user/domains/domain.com/public_html/PhpMailer/mail.php on line 2
So, I have tried many solutions, however, I think maybe the problem lies in the server settings, but I don't know why and what to change. Otherwise, the problems lie in the code. If anyone is able to help me, I would appreciate it.