• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

How to change mail address of the sender when using mail() function

BonCev

New Pleskian
Now, when I send a mail with the function php mail(), the default sender adress is mydomaincom@mydomain.com

Where I can change it ?

I found the option "user" in
./php5/fpm/pool.d/mydomain.com.conf
user=mydomaincom

but it's wrtied do not modify this file because it is relied with plesk...

(I know I can use headers in my php function but it's not that i want)
 
Back
Top