problem sending mail
[email protected] ("Aman Raheja") Wed, 10 Apr 2002 12:25:46 -0500
| Newsgroups | perl.scripts,perl.beginners.cgi,perl.beginners |
|---|---|
| Message-ID | <[email protected]> |
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