php - Warning: mail(): Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in /home/ipx12489/public_html/ -
i got above warning when trying send email ajax php file. trying code:
$to = "suman5571@gmail.com"; $subject = "this subject"; $message = "<b>this html message.</b>"; $message .= "<h1>this headline.</h1>"; $header = "from:suman5571@gmail.com \r\n"; $header = "cc:dhillon0jags@gmail.com \r\n"; $header .= "mime-version: 1.0\r\n"; $header .= "content-type: text/html\r\n"; $retval = mail ($to,$subject,$message,$header); if( $retval == true ) { echo '1'; } else { echo '0'; }
you should check sendmail_path settings in php. check if program exists , installed.
Comments
Post a Comment