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 world’s largest e-mail service with MSN Hotmail. >http://www.hotmail.com > _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]