lz wrote: > 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 >
I have not tested this... since I don't have a mail server setup, so this could be wrong. open MSG, "|mailx -s \"test\" $mailAddress"; while (<TMP>){ print MSG $_; } close MSG; close TMP; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]