# Disabel php mail function

**URL:** <https://forums.interworx.com/t/disabel-php-mail-function/23426>\
**Category:** NodeWorx\
**Created:** [November 8, 2023, 10:44am UTC](https://forums.interworx.com/t/disabel-php-mail-function/23426 "2023-11-08T10:44:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![inventdigital](https://forums.interworx.com/letter_avatar_proxy/v4/letter/i/d9b06d/32.png) [@inventdigital](https://forums.interworx.com/u/inventdigital)\
**Post date:** [November 8, 2023, 10:44am UTC](https://forums.interworx.com/t/disabel-php-mail-function/23426/1 "2023-11-08T10:44:38Z")

</div>

Hello, is there any way we can block the php mail function in winterworx if it causes problems? I have had several problems with clients who have hacked websites and end up sending emails via php mail. I found some ways on the internet, such as disable\_functions = mail, but I don’t know if I can use that.

---

<div class="post-metadata">

**Author:** ![d2d4j](https://forums.interworx.com/user_avatar/forums.interworx.com/d2d4j/32/16_2.png) [@d2d4j](https://forums.interworx.com/u/d2d4j)\
**Post date:** [November 8, 2023, 11:41am UTC](https://forums.interworx.com/t/disabel-php-mail-function/23426/2 "2023-11-08T11:41:15Z")

</div>

Hi

That may work but think the bad users would just install a smtp service or override the disable

The mail Queue should be set to notify if volume reaches a set level and there are some scripts on the forum to stop the smtp if level of mail queue reaches a set number

Many thanks

John
