Hi
I'm trying to email an attached zip file with the following code but the message just seems to go into cyberspace and not my inbox?
$logfile="$logpath.zip"; $subject="logs for $pkgname"; $user1="user01"; $recipient1="user01@email.org"; if ($userid = $user1){ system("uuencode ${logfile} ${logfile} | mailx -s ${subject} -r ${r +ecipient1}"); #print "$user1\n"; }
I've put the curly braces around the variables to try to avoid interpolation
Also tried without the curly braces but received the same result.
Thanks
Tony
In reply to Trouble emailing zip file by TonyNY
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |