- Plesk 12.5 for Linux
- Plesk 11.x for Windows
- Plesk 11.x for Linux
- Plesk 12.0 for Windows
- Plesk 12.0 for Linux
for PHP mail script is taken as server administrator mail address.
How to specify exact default
for PHP mail scripts in Plesk?
As of now, the functionality of changing this setting via Plesk UI is not implemented.
As a workaround, according to PHP documentation, it is possible to re-define the values on a PHP level:
CONFIG_TEXT: Which "From:" mail address should be used in mail sent from PHP under Windows. This directive also sets the "Return-Path:" header.
This setting can be re-defined by adjusting corresponding php.ini file. For example:
- Log into Plesk.
- Go to Tools & Settings > PHP Settings > PHP 7.0 > php.ini and change
sendmail_fromto required mailbox:
PLESK_INFO: sendmail_from = [email protected]
Return-Path parameter for a particular domain, specify it in custom PHP settings for the domain at Domains > example.com > Websites & Domains > PHP Settings > Additional directives.
parameter can be set by including in
(for Linux, the default "From" field can be overridden for the outgoing emails):
CONFIG_TEXT: sendmail_path = "/usr/sbin/sendmail -t -i [email protected]"