Phpmailer: Not working on godaddy server but working perfectly on localhost

Created on 11 May 2018  路  3Comments  路  Source: PHPMailer/PHPMailer

when I deploy my site on GoDaddy server it's showing me this error but on localhost, it works awesome.
Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRINGbug output on line which contains this code :
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;

All 3 comments

It's versioning issue I switch to PHPMailer ver. 5.2.26 and it works perfectly fine. Thanks for an awesome script.

This is because you鈥檙e running a very old version of PHP. Also read the troubleshooting guide about problems with GoDaddy.

Thanks a lot Synchro. appreciate your support and help :)

Was this page helpful?
0 / 5 - 0 ratings