Ron Geringer wrote:

> "install
> MAIL::sendmail". However, if I run it like that it errors out all over the
> place. Could you give me a little direction on how to place it in the cgi or
> perl script.

Sorry for the misdirection.  I noticed on review that I had used Mail::sendmail rather 
than Mail::Sendmail in my use command.  Because I use Windows, it slipped right by me, 
since Windows fienames are not caase sensitive.

The installation process should not be part of the Perl script.  It's something you 
want to do on your server (or workstation--it works equally well) beofre running the 
script.  I think that the [case-sensitive in Unix] Mail::Sendmail library will serve 
you better than using the shell snecmail utility.

Directory paths should not be hard-coded into a program, unless the program is 
intended to serve as an adapter for a given environment.  In that case, the code 
containing such local low-level details should be isolated and modularized, so that it 
does not pollute your programming logic.  Within the main body of any program, it is a 
sure-fire guarantee that that program will become incompatible throwaway code.

Mail::Sendmail does not require such irelevant detail, nor does it require the buffer 
variables you use.  Given the billions of e-mails that have gone out over the net over 
the years, there is very little engaging about the bare-bones process of printing each 
line to a file handle representing mail.  Instead, just fill in the blanks within a 
packaged object, and let that take care of the crudge-work.  You should have more 
interesting problems to deal with, such as content.

Joseph


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

Reply via email to