in reply to How to put email addresses in a variable and send mails via mailx command
Your problem is use of single-quotes which do not interpolate any variables ...
... '|/bin/mailx -s "Happy Birthday" $email' ...
... so reverse the quotes used: qq{|/bin/mailx ... $mail_addr}.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to put email addresses in a variable and send mails via mailx command
by AnomalousMonk (Archbishop) on Dec 24, 2015 at 17:45 UTC | |
by Anonymous Monk on Dec 24, 2015 at 21:45 UTC | |
by AnomalousMonk (Archbishop) on Dec 24, 2015 at 22:42 UTC | |
by Anonymous Monk on Dec 24, 2015 at 22:50 UTC | |
by Anonymous Monk on Dec 24, 2015 at 22:54 UTC |