Mailer.php file is not working

It showed me this error when I upload mailer.php to 000webhosting. it seems that there is an error with the code

I am not familiar with the specific project you are working with. However, based on the answers to a similar error I have linked to below, it seems there may be a missing semicolon on another line. Maybe try opening that php file and seeing if a semicolon needs to be added somewhere and save the file, and try again. Just a possibility, I don’t know.

As an option, you could also post the code to that file (the mailer.php).

Hello @Engmostafa26,
Please rename your php file to send.php And then it’ll work.

Sithum Abeydheera.