The unix mail command does not allow you to set the from address (that is your own user), but the syntax of the rest of it can be gotten from 'man mail', excerpted here:
mail [-s subject] [-c cc-addr] [-b bcc-addr] to-addr But, since this is a perl list, I would be remiss if I didnt suggest you use Net::SMTP, which is quite handy for sending mail, and portable across platforms. Then you could do something like use Net::SMTP; my $smtp = Net::SMTP->new($mailhost_name); $smtp->mail($from_address); $smtp->to($to_address); $smtp->data($message_text); $smtp->quit(); More features/examples are available via 'perldoc Net::SMTP' Best, George On Wednesday, July 10, 2002, at 03:07 PM, William Black wrote: > > Hi all, > > Does anyone know about the unix mail command and how to specify who the > message is being sent to and the subject and where the message is from. > > Thanks, > > William Black > > > > _________________________________________________________________ > Join the worldís largest e-mail service with MSN Hotmail. > http://www.hotmail.com > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > // George Schlossnagle // Principal Consultant // OmniTI, Inc http://www.omniti.com // (c) 240.460.5234 (e) [EMAIL PROTECTED] // 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]