neversaint has asked for the wisdom of the Perl Monks concerning the following question:

Hi Experts,
I have a simple script using MIME::Lite to email something automatically. However, there is an annoying disclaimer message attached at the bottom of the email whenenever this email is sent.
------------ Some Company Name - Disclaimer -------------This email is + confidential and may be privileged. If you are not the intended rec +ipient, please delete it and notify us immediately. Please do not cop +y or use it for any purpose, or disclose its contents to any other pe +rson. Thank you.----------------------------------------------------- +---
Since I don't have any control to the SMTP server, is there a way in MIME::Lite or any other method to remove the above disclaimer?

My emailing script is very simple:
use strict; use warnings; use MIME::Lite; my $msg = MIME::Lite->new( From => "myemail@domain.com", To => "somebody@gmail.com", Subject => "Some Subject", Data => "Some long message", ); $msg->send();


---
neversaint and everlastingly indebted.......

Replies are listed 'Best First'.
Re: Howto Remove Email Disclaimer Message with MIME::Lite / Perl
by erroneousBollock (Curate) on Sep 17, 2007 at 03:54 UTC
    That disclaimer was probably added by your local SMTP (mail) server. Ask your administrator about your options.

    -David

Re: Howto Remove Email Disclaimer Message with MIME::Lite/Perl
by samtregar (Abbot) on Sep 17, 2007 at 16:05 UTC
    I agree that you should talk to your sys admin. Failing that, you might try making it harder for the SMTP server to corrupt your message. Possible options - send your message as a multi-part message with HTML and text parts or encode your message as base64 (Encoding => "base64").

    -sam

Re: Howto Remove Email Disclaimer Message with MIME::Lite/Perl
by Anonymous Monk on Jan 14, 2009 at 00:12 UTC
    Depending on the configuration of your SMTP provider's server, it might allow for per email domain configuration settings, such as how many emails may be relayed out per email account per domain, or per domain, or what gets amended or stripped from the emails, ie, headers and message body. In your case, there might be a chance you may ask the admin to create some entries that change outgoing SMTP behavior for your emails. This includes emails that were "piped in" via the command line, or via compiled perl modules that interface with the system. (Like your perl script using Mime::Lite) There are usually many points where you might be able to process outgoing emails before relaying out.