Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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/esmtp which 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 the additional_parameters parameters (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 esmtp from 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.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.