send mail from problem
Posted: Fri Nov 12, 2004 8:30 am
error:
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing on mypage.com
I can't figure out why the FROM isn't being set. most is cut paste from manual after orginal code not working, although it is very simillar.
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing on mypage.com
Code: Select all
<?php
$headers='';
$message="some dynamic message";
$email="phpscott@gmail.com";
$subject='confrimation email from my company for invoice # $sc';
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: scott.martin@sanderson.com\r\n";
$headers .= "Reply-To: phpScott@gmail.com\r\n" ;
$headers .= "Cc:phpscott@gmail.com\r\n";
mail($email, $subject, $message, $headers);
?>