Thread

Posted on Thu Feb 22 19:59:45 2007 by sindhi
How to Remove or Modify X-Mailer
Hello,
Does anyone have any information on this? Version 0.8.13 sends the following as the x-mailer:

X-Mailer: Perl script "XXXX.cgi" using Mail::Sender 0.8.13 by Jenda Krynicky, Czechlands running on www.XXXXXXX.com (###.###.###.###) under account "XXXXX"


Please let me know,

Thank you
Direct Responses: 4398 | Write a response
Posted on Thu Feb 22 21:54:45 2007 by jenda in response to 4397
Re: How to Remove or Modify X-Mailer
Sometimes it pays to read the docs, there's an option for this. And you should not do that anyway.
Direct Responses: 4410 | Write a response
Posted on Fri Feb 23 23:23:54 2007 by sindhi in response to 4398
Re: How to Remove or Modify X-Mailer
Hi,
Actually I had figured it out shortly after my post. Came back to post a reply, but saw your friendly reply :)

I want to remove/modify the x-mailer because I do not want the world to know the server login info.

Is the following the proper way to modify the x-mailer?

$Mail::Sender::NO_X_MAILER = 1;
*Mail::Sender::SITE_HEADERS = \"X-Mailer: My Mailer";


Thanks
Direct Responses: 4429 | Write a response
Posted on Mon Feb 26 15:59:03 2007 by jenda in response to 4410
Re: How to Remove or Modify X-Mailer
Yes, this should work fine. And you may want to put something like this into the Sender.congif alongside the Sender.pm so that you do not have to include this in all scripts. Jenda
Write a response