Skip to main content

Can't set Reply-To Header in E-Mails sent via PHP mail()

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! I don't believe this would be related to cPanel, but I'll leave this marked as new in case someone familiar with PHP coding has some ideas.
    0
  • HK Computerdienst GmbH
    I can asure you that this is not an error in the PHP code. When you say, that cPanel may not be at fault, would you think that i should instead contact the CloudLinux support? The script was just to confirm the behaviour but other software like Shopware or several Form Plug-Ins for different CMS show the same problem. The Reply-To field gets overwritten by something in between the Code and leaving the Server.
    0
  • cPRex Jurassic Moderator
    Does this seem like a similar issue? Exim overwrites "from" header when sending MIME email from PHP I'm not sure that CloudLinux would be involved either, but if we can find a problem with Exim itself that's something I could get a case opened with the developers.
    0
  • HK Computerdienst GmbH
    I've found the link already but didn't think that any of this made a difference since the only real change we've made to exim was to configure a smart host to one of our SMTP servers. I've also tried to send an email via the following code but got the same result. (Reply-To = From) echo "This is message" | mail -s "Testing replyto" -S replyto="test2@hk-computer.de" test1@hk-computer.de
    After clicking on "Answer" on the E-Mail the "To" Field was filled with test1@hk-computer.de but should have been test2@hk-computer.de So this is not a PHP problem. Regarding your Link, I'll gladly change any setting but i can't find a "trusted_users" in WHM Exim-Configurationmanager. Shouldn't the cPanel users already be trusted? Edit: And regarding the external SMTP server, is set up to just receive emails and send them to their destination without changing anything about the email. There is no spam checking or anything done to the emails on this server. If i send an email from one of our other servers via this SMTP with a Reply-To header it stays intact.
    0
  • cPRex Jurassic Moderator
    I believe at this point it would be best to create a ticket with our support team so we can see the specific configuration and mail handling on your server.
    0

Please sign in to leave a comment.