[How-to] Restrict PHP scripts to send e-mails for particular domain

Refers to:

  • Plesk 11.5 for Linux

Created:

2016-11-16 13:14:28 UTC

Modified:

2016-12-21 20:15:58 UTC

0

Was this article helpful?


Have more questions?

Submit a request

[How-to] Restrict PHP scripts to send e-mails for particular domain

Symptoms

How-to restrict PHP scripts to send e-mails for particular domain?

Resolution

Open in Plesk GUI:

Home > Subscriptions > Subscription name > Websites & Domains > domain.tld > PHP Settings

In section 'Additional directives' add the following statement:

disabled_functions = mail

This will restrict PHP scripts for 'domain.tld' to execute mail() function.

Have more questions? Submit a request
Please sign in to leave a comment.