Why does the PHP mail()
function require a mail program like sendmail/postfix/etc. for sending emails?
I ask because sending email is a client action and not something that needs to run a server.
What is so complicated about creating a native PHP mail function without the need to install a sendmail/postfix/etc. program that has excessive functionality as a server that can get requests and not just send email as a client?
Most likely: sendmail
existed before PHP's mail()
, so in the true spirit of *nix:
Why re-create functionality when it already exists on the CLI?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With