The following email program will work when the text being sent to sendmail is quoted with a HEREIS but not when it's quoted with either qq or "". Using qq or "" results in the message "No recipient addresses found in header." I tried adding newlines after each line in the header, but it didn't make a difference. Anyone know why this is?
(if you replace the qq with a HEREIS, this will work)
Thanks!open(MAIL, "|/usr/lib/sendmail -oi -t") || die "Can't open sendmail: $ +!"; print MAIL qq| From: Me <me\@here.com> To: You <you\@there.com> Subject: Email body text|; close(MAIL);
In reply to Sendmail and qq vs HEREIS by LadyD
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |