I think the error occurs because the variable $mailprogram must be a scalar
or hash.
I would use " instead '.

What appears strange me, you have commented smtp.ts.checkpoint.com as "mail
proram", but it looks like a FQDN (i.e. the dns name of a Mail Server) and
not a client program to send mails.

If you are using unix, try with:
-  my $mailprog = "mailx"  # mailx is a opensource client smtp and muss be
correctly configured on your system.
http://www.redhat.com/docs/manuals/linux/RHL-5.1-Manual/manual/doc095.html


If you are using MS win, try with:
-  C:\Program Files\Microsoft Office\Office> Outlook.exe /c ipm.note /m
[EMAIL PROTECTED]

You will remark, the subject and the body of the mesage are missing, and the
mail will not be send automaticaly. Perhaps they are others switches to
complete this CL, but I don't know them.

Marco


From:                   "Lance Prais" <[EMAIL PROTECTED]>

I am reading from a log file that is generated from with in SIEBEL using a
SIEBEL command and parsing though it for errors then if there is an error
found I need to send en email to someone.

You are correct about not having to use the web server so I decided that it
was inefficient. I am going to try to connect to the Smtp server directly.
using perl here is my code:

my $mailprog = 'smtp.ts.checkpoint.com';  #set mail program

#Set variables for each of the fields in the form
#my $error = param ('error'); #error
#my $workflow = param ('workflow'); #workflow

open(MAIL,"|$mailprog -t");---THIS WOULD BE LINE 20
print MAIL <<"EOF";
From: Web Site <support\@ts.checkpoint.com>
To: lprais\@ts.checkpoint.com
Subject: Workflow failure

The following error has occurred on Apollo and related to Siebel:

Name: Testing
Workflow: Testing

EOF

close MAIL;

Getting the following errors.


<H1>Software error:</H1>
<PRE>Type of arg 1 to each must be hash (not subroutine entry) at test line
20,
near &quot;);&quot;
Execution of test aborted due to compilation errors.
</PRE>
<P>
For help, please send mail to this site's webmaster, giving this error
message
and the time and date of the error.

[Tue Dec 11 15:28:26 2001] test: Type of arg 1 to each must be hash (not
subrout
ine entry) at test line 20, near ");"
[Tue Dec 11 15:28:26 2001] test: Execution of test aborted due to
compilation er
rors.


Line 20-------open(MAIL,"|$mailprog -t");


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to