On Tue, Dec 11, 2001 at 02:05:14PM -0800, Lance Prais wrote:
> I have a question and I was wondering if anyone had an opinion on it.  I am
> using a perl script to parse through a log file and if there is an error
> found I need to send and email to someone..
> 
> I was thinking about calling an ASP page and passing, the relevant
> information and when this page is called generate and send the email.  Is it
> possible to just do this all with perl?  If so can someone recommend a site
> or direction?   I have looked on all the major sites and have not been able
> to find anything that references this concept.

Posting to an ASP page is certainly a baroque way to approach the problem.
You're adding a lot of needless dependencies to your program (a particular
web server must be up and running, it must have a specific ASP page at a
particular address, and that ASP page must be configured properly...)

Yes, you can send email from perl.  Look into the Mail::Send[1]
module on CPAN.  Fewer moving parts.  :-)

Z.

[1] If you don't have access to Sendmail locally, then look into Mail::Mailer,
    also included in the same distribution.  It can send messages using SMTP
    instead.

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

Reply via email to