JupiterHost.Net wrote:


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

I would strongly suggest using the Mail::Sender module also, extermely versitile for all types of email needs, SMTP with or without authentication, uses Sendmail, all types of mail attachments if needed... just about any type of email requirements one would need all in one module.


IMHO . . . :-)
--
Mike(mickalo)Blezien
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Thunder Rain Internet Publishing
Providing Internet Solutions that work!
http://thunder-rain.com/
Tel: 1.712.395.0670
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


-- 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