http 500 error on webform to send email

I am getting HTTP error 500 (the page isnt working) when i submit the form.
My web form calls ‘send_mail.php’ which is the PHPmailer script i created. The code i used is

<

form name=“contactform” method=“post” action=“send_mail.php”>

you would have access to my account. Could you please check and let me know where am i going wrong. It is a very simple form and email test

Also, i have completed other actions like
uploading PHPmailer files
enabling less secure apps access on gmail
setting MX record

Let’s not create multiple discussions about the same issue, shall we?

https://forum.infinityfree.net/discussion/3478/guide-to-receive-data-from-webform-in-an-e-mail