LadyD has asked for the wisdom of the Perl Monks concerning the following question:
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sendmail and qq vs HEREIS
by dvergin (Monsignor) on Jun 27, 2001 at 04:40 UTC | |
|
Re: Sendmail and qq vs HEREIS
by bikeNomad (Priest) on Jun 27, 2001 at 04:43 UTC | |
|
(tye)Re: Sendmail and qq vs HEREIS
by tye (Sage) on Jun 27, 2001 at 09:49 UTC |