Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Unexpected 'newline' token breaks sendmail.

by VSarkiss (Monsignor)
on Oct 13, 2006 at 16:41 UTC ( [id://578171]=note: print w/replies, xml ) Need Help??


in reply to Unexpected 'newline' token breaks sendmail.

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
Cleaned up text spacing a little.

Replies are listed 'Best First'.
Re^2: Unexpected 'newline' token breaks sendmail.
by Anonymous Monk on Oct 13, 2006 at 17:46 UTC
    which is a ... wait for it ... syntax error because the newline is not expected.

    I so saw that coming!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://578171]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-03-28 17:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found