I am sending emails using PHP Pear class, when I see mails in gmail, it has an Mailed-by header, I know it can be removed by using -f in php mail function, but how can I remove it in Pear send.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Mail Pear library is actually just a php file on your system. I highly doubt there is a programmatic way to do what you want, but if you can’t find it in the PEAR documentation you can just examine the Mail.php file yourself.
Try using the
locatecommand on your system to find the Mail.php file. It should be in /usr/local/lib or /usr/local/php/lib or something similar. Probably under a subdirectory called PEAR.Once you find it and if you’re comfortable with this, you can edit the source file to do whatever you want (i.e. comment out the line that adds that header). Note this will affect all PHP scripts on this system and will have to be re-added if you update PEAR.