PHPMailer not working on Hostinger, neither any error is displayed

3k views Asked by At

I've hosted a website and there is a contact form. I'm using PHPMailer and Gmail's smtp settings to send that email. The domain and email are owned by me and I've hosted the domain on free hosting service for test.

The email script works fine on my local server, but on Hostinger it displays a Error Page (500), Internal server error. I tried to enable the error logs but still I am not able to see any error.

Please help, Thanks in advance.

UPDATE I've checked the PHP and PHPMailer version on my local server as well as on Hostinger. They are exact same.

1

There are 1 answers

1
ADH On

check where is the exact location for the autoload, it may be a folder below: require '../vendor/autoload.php';