Problem sending phpmailer to the server

0

People, this can be a simple or complicated problem, I just know that I can not solve it.

I have done thousands of searches on hosting topics, here in Stack, but it still does not work, so I do not know if the problem is in the phpmailer files, or the settings on the server

On my local server (xampp) things work normally, php mailer sends straight email to gmail. Already on the hosting server nothing works. What appears in the error message is as follows:

Parse error: syntax error, unexpected '-' (T_DEC) in /home3/centroed/public_html/site/phpmailer/class.phpmailer.php on line 4046

This error only appears on the "real" server and the file did not even move because it came directly from GitHub

Not a version of php (7.2)

Google's less secure apps settings are already enabled

phpmailer email and password information is correct

openssl is already enabled

and the only detail is the php.ini that does not exist on the server and I needed to create one myself. I do not know if the problem is in php.ini or elsewhere, I just know that I tried several things and most do not work ... Any idea what it could be?     

asked by anonymous 13.08.2018 / 16:41

0 answers