linux - How does PHP choose what email address it sends from? -
linux - How does PHP choose what email address it sends from? -
i noticed odd while doing testing on someone's development server. using very simple mail service test...
mail('iamnotsharingmy@email.com', 'test subject', 'test message'); ...on receipt, sender root@ , other times sender www-data@.
what causes change, seemingly, randomly?
yes, know sender can set in headers, curious causes default behavior.
server informationubuntu server 12.04 apache/2.2.22 php version 5.3.10-1ubuntu3.7
echo exec('whoami'); returns www-data user web server running under.
php linux apache email webserver
Comments
Post a Comment