![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Unexpected 'newline' token breaks sendmail.by VSarkiss (Monsignor) |
on Oct 13, 2006 at 16:41 UTC ( #578171=note: print w/replies, xml ) | Need Help?? |
As davido and Fletch have pointed out above, you should really be using Mail::Mailer. But as to the error message: those are coming not from Perl, but from the shell that perl is spawning to run sendmail. You're using unquoted angle brackets in the email addresses, which the shell interprets as redirection symbols. Except there's no file name or symbol after the >, just a newline, which is a ... wait for it ... syntax error because the newline is not expected. You could fix it by escaping the angle brackets, but as the others have mentioned, it'd probably be better to go with Mail::Mailer. Update
In Section
Seekers of Perl Wisdom
|
|