Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail error

Status
Not open for further replies.

MayFlowerNew

Programmer
Dec 21, 2004
20
CH
I have following code

/usr/lib/sendmail -oi -t <<EOF
To:=abc@xyz.com;
Subject: abc
test
EOF

But I get this weird error
Bareword found where operator expected at abc.pl line 124, near "/usr/lib"
(Missing operator before lib?)
syntax error at abc.pl line 124, near "/usr/lib"
In string, @xyz now must be written as \@xyz at abc.pl line 124, near "To:=abc@xyz"
Execution of abc.pl aborted due to compilation errors.

Please help
Thanks
 
This isn't a sendmail error, it's a problem with your perl code.
 
Could you please tell me what is it? I cant figure out the problem..

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top