Re: problem sending mail
[email protected] ("Aman Raheja") Wed, 10 Apr 2002 12:46:34 -0500
| Newsgroups | perl.scripts,perl.beginners.cgi,perl.beginners |
|---|---|
| Message-ID | <[email protected]> |
It didn't work either way as suggested using -t only or changing the delimiting tag with print statetent I tried to do the same on the command line and it works. I wonder what is missing here. Help is greatly appreciated Aman >From: "Aman Raheja" <[email protected]> >To: [email protected], [email protected], >[email protected], [email protected] >Subject: problem sending mail >Date: Wed, 10 Apr 2002 12:25:46 -0500 > >Hi all >I am trying to send a mail with the following code and the last print >statement doesn't print, ie, the mail is not sent. >This code is called on submitting a form on the web >-------------------- >open(MAIL, "/usr/sbin/sendmail -oi -t") || die "Can't open mail"; >print MAIL <<END; >To: amancgiperl\@hotmail.com >Subject: News >all the message goes here >END > >close(MAIL); >print "The mail has been sent successfully<BR><BR>"; >--------------------- >If I remove the -oi -t switch from the first statement, the print statement >works but the mail is not sent. >Please help and let me know what could I be missing, in or above the code. > >Thanks >Aman > >_________________________________________________________________ >Join the worlds largest e-mail service with MSN Hotmail. >http://www.hotmail.com > _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com