in reply to Re^4: Removing Headers in Perl
in thread Removing Headers in Perl

So, to translate your wish into real-world terms, you want to send a post card to yourself, without writing your address onto the postcard?

The headers in emails are administrative information which is used for routing the mail from the source to the recipient, so you cannot leave it. Much of an email is added by the mail transfer agent (MTA) anyway and beyond your control.

But as far as it is under your control, you can stop printing the headers.

Maybe that hint wasn't subtle enough. The print function is used to print output. If you don't want to print something, remove the print statement.

Replies are listed 'Best First'.
Re^6: Removing Headers in Perl
by aquarium (Curate) on Nov 12, 2007 at 02:34 UTC
    furthermore....barebonesmailer does not equal "your" script, just because you reproduced it here. in fact i don't see any evidence of input/mod by you at all. if you are blind to the "print" statements...maybe you should be playing with outlook and not perl.
    the hardest line to type correctly is: stty erase ^H