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

i think you are correct. i do not want to print the headers. basically, i have a perl script that generates an email from a web page. when i send the email to my own outlook and i go to 'View' 'Options' I see all the received from, smtp info, and mime ver.....i basically want to see that 'Internet Headers' box to be 100% empty

Replies are listed 'Best First'.
Re^5: Removing Headers in Perl
by Corion (Patriarch) on Nov 11, 2007 at 21:44 UTC

    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.

      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