roblem in sending mail with mail() function

From: Date: Wed, 25 Apr 2001 12:26:44 +0000
Subject: roblem in sending mail with mail() function
Groups: php.general 
Request: Send a blank email to php-general+get-50286@lists.php.net to get a copy of this message
Hello, I tried to send mail through the mail function but it is not working and it is not showing any error. I am using php version 3.0.12 under linux, following is the code I used to send mail. So what is the problem with it, any body please solve this. Regards Vishak <html> <?php if ($submit) { $recipient="vishak_tomy@yahoo.com,vishak_tomy@usa.net,shaileshak@hotmail.com"; $sub = "this is a test"; $message = "this is a test message"; $headers = "Content-Type: text/html; charset=iso-8859-1\n"; $headers .= "X-Priority: 1"; mail($recipient,$sub,$message,$headers); } ?> <form action="<?php echo $PHP_SELF ?>"> <input type="submit" value="submit"> </form> </html>

« previous php.general (#50286) next »