I need to build a quick and dirty mail delivery system based on php mail function. Since for mutt I already use esmtp, I've configured my php.ini to use it as well:
- I've placed a configuration in
/etc/esmtpwhich reflects my account settings (proved to be working); - I tested it with mutt (removing my home configuration file, thus using the one in
/etc/ - I've configured php to use
esmtp, caring about theadditional_parametersparameters (which contains the destination mail address).
Since it still doesn't work, I've written a quick perl script which prints both the command line arguments and the standard input on a file (instead of sending). This allowed me to check the behavior:
- I launch
esmtpfrom the command line, setting as first argument the destination mail address (exactly as php does); - I put as standard input the content of the dump file.
Result? It works for my hand-driven experiment, it doesn't for php.
Any hint?
Note: Using esmtp is not a strict requirement. I'm using it just because it already works for mutt.