in reply to Trouble emailing zip file
system("uuencode ${logfile} ${logfile} | mailx -s ${subject} -r ${rec +ipient1}");
Your $subject contains whitespace. Think about how that's going to affect the mailx command. Why not use a module instead of the shelling-out kludge?
if ($userid = $user1){
That's an assignment rather than a test of equality. Also you haven't declared @email so probably the receipient address is wrong too. Time to read the Basic Debugging Checklist maybe?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Trouble emailing zip file
by TonyNY (Beadle) on Jul 03, 2018 at 13:42 UTC | |
by hippo (Archbishop) on Jul 03, 2018 at 13:47 UTC | |
by TonyNY (Beadle) on Jul 03, 2018 at 13:57 UTC | |
by Corion (Patriarch) on Jul 03, 2018 at 13:50 UTC | |
by TonyNY (Beadle) on Jul 03, 2018 at 16:05 UTC | |
by Anonymous Monk on Jul 03, 2018 at 13:53 UTC |