Try

system("cat home/dev/perl/mail_queue/$filename | mailx -s \"test\"
$mailAddress ");

Regards,
Agustin Rivera
Webmaster, Pollstar.com / PollstarOnline.com


----- Original Message -----
From: "lz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 28, 2002 8:57 AM
Subject: sending mail from Perl redirecting from a file


> Hi guys,
>
> open TMP, ">/home/dev/perl/mail_queue/$filename" or
> die "Can't create file: $!";
>
> I read an incoming file, modify it and save it in the
> file, as seen above.
>
> Later on, I'd like to send the above generated file:
>
> I try the following, but it doesn't work.
> open MSG, "|mailx -s \"test\" $mailAddress < $TMP";
> close MSG;
>
> Any ideas how to make it work?
>
> Thanks a lot!
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to