>>>>> "JB" == John Bruin <[email protected]> writes:
JB> I have inherited a Perl script which sends and parses email. I am
JB> having trouble trying to figure out what the "-oi" and "-oem"
JB> arguments do in the sub below. Can anyone help?
JB> sub mail(*) {
JB> my $top = shift;
JB> open(MAIL, "| $sendmail -t -oi -oem") or die "open: $!";
JB> $top->print(\*MAIL);
JB> close MAIL;
JB> }
look at the manual page for sendmail. if you don't have man pages
installed, google for it. those are common options to use when sending
mail from a program.
if you want to rewrite it to make it better, there are many good mail
modules that do all that for you and you don't need to see options like
that. the above is old style coding for mailing.
uri
--
Uri Guttman ------ [email protected] -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/