vishwas bhakit wrote:
i had written following script for sending mail automatically through
PERL using "sendmail" program in the perl script.
But its not workig. What may be the problem with it.

It doesn't: - use strict; - use warnings; - check to see if the open() to sendmail worked or not - use a valid email message (IE no seperation between header and body) - close the EMAIL_TO_USER here doc... - From header has an odd quote in it

I'd recommend using a module to do all the dirty work for you.
I like Mail::Sender (does SMTP session instead of piping to external program) There are other though of course, search.cpan.org


HTH :)

Lee.M - JupiterHost.Net

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to