# Problem with PHPMailer, error 500

**URL:** <https://forum.infinityfree.com/t/problem-with-phpmailer-error-500/59369>\
**Category:** Hosting Support\
**Created:** [March 19, 2022, 8:11pm UTC](https://forum.infinityfree.com/t/problem-with-phpmailer-error-500/59369 "2022-03-19T20:11:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![wackyblackie](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/wackyblackie/32/43350_2.png) [@wackyblackie](https://forum.infinityfree.com/u/wackyblackie)\
**Post date:** [March 19, 2022, 8:22pm UTC](https://forum.infinityfree.com/t/problem-with-phpmailer-error-500/59369/2 "2022-03-19T20:22:08Z")

</div>

> [@ferodt](#):
>
> $\_GPOST[‘phone’]

I am having a hard time reading your code, but from what I can see, `$_GPOST` is not a variable.

> [@ferodt](#):
>
> $mail-\>SMTPDebug = SMTP::DEBUG\_SERVER; //Enable verbose debug output

Change this to `4`.

> [@Http error 500](https://forum.infinityfree.com/t/http-error-500/49352):
>
> When trying to access your website, you may see a page which returns the status code “500”. In Google Chrome, you’ll see a page with the error code HTTP ERROR 500. There are typically two reasons which can cause this error: The PHP code has crashed. The .htaccess file contains invalid rules. Here are some things you can try to debug and fix this. Fixing crashing PHP code A HTTP ERROR 500 simply tells you that the PHP code has crashed, but gives no information as to why it has crashed. Gett…

> **[GitHub - InfinityFreeHosting/contactform: Simple contact form with PHPMailer](https://github.com/InfinityFreeHosting/contactform)**
>
> Simple contact form with PHPMailer

---

_[View the full topic](https://forum.infinityfree.com/t/problem-with-phpmailer-error-500/59369)._
