Issues sending mail via mail() with correct from address

Discussion in 'General' started by Draconias, Feb 2, 2018.

  1. Draconias

    Draconias New Member

    Hello,
    I seems to have an issue with sending emails via mail() with the correct from address.

    I have a ispconfig 3.11 server running with two wordpress sites on it. The wordpress site uses contact form 7 to create a form and send email using the php mail() function. I know I can use the smtp plugin to send via smtp, but that isn't the issue.

    The problem I'm having is that the from address is always set to the from address specified in the "/etc/php/x.x/pool/webx.conf" files for each domain. The default email address specified is [email protected]. eg.

    php_admin_value[sendmail_path] = "/usr/sbin/sendmail -t -i -f [email protected]

    Even when I set a from address in the configuration of the contact form 7 plugin to something like "Gold investment <[email protected]>" the from is always set to [email protected].

    The question is how do I "force" the server to use the specified from address in the header instead of the specified from address from "/etc/php/*.*/pool/xxxx.conf".
     

Share This Page