when i send mail form this server https://www.nationalmicroscope.com/test.php then error is displaying why? code is $to = 'monubhadoria1@gmail.com' ; // note the comma // subject $subject = 'Birthday Reminders for August'; // message $message = ' <html> <head> <title>Birthday Reminders for August</title> </head> <body> <p>Here are the birthdays upcoming in August!</p> <table> <tr> <th>Person</th><th>Day</th><th>Month</th><th>Year</th> </tr> <tr> <td>Joe</td><td>3rd</td><td>August</td><td>1970</td> </tr> <tr> <td>Sally</td><td>17th</td><td>August</td><td>1973</td> </tr> </table> </body> </html> '; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers // Mail it if(mail($to, $subject, $message, $headers)) { echo"Sent"; } else { echo"Not Sent"; } echo"<br>"; and error is mail() [function.mail]: Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in /home/nmicroscope/public_html/test.php on line 40 Not Sent can u tell me why simple mail not send on this server
Put this in a PHP file and run it.. then tell us what it says <?php echo function_exists("mail"); ?> Code (markup): Most likely it returns "false", or could be that sendmail is installed in a different place on the server.