I'm using mail() to send mail out. here is my code...
if($_POST){ echo "testing";
$to = 'numerical25@aol.com';
$subject = 'Request A Quote (Customer From PimpMySiteNow.Com';
$message = "Name: ".$_POST['name']."\n";
$message .= "Email: ".$_POST['email']."\n";
$message .= "Site Size: ".$_POST['site_size']."\n";
if (isset($_POST['Yes'])){$cart = 'Yes';}else{$_POST['Yes'] = 'No'; $cart = $_POST['Yes'];}
$message .= "Shopping Cart: ".$cart."\n";
$message .= "Comments: ".$_POST['comments'];
if (mail($to,$subject,$message)){
$response = "You Request has been successfully submited";
}else{
$response = "Your request was unsuccessful, please contact the webmaster if this problem continues";
}
all those $_POST is coming from a form. Now I went into my php.ini and I found the varible sendmail_from and I removed the ; comment and I put my email address in there. I put a aol email address in there. my site is running off my computer so I used localhost for..... Well here is the code
mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
sendmail_from = numerical25@aol.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
but yet I still get the error that my sendmail_from is not defined. Here is my error
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\Program Files\EasyPHP 2.0b1\www\pimpmysite\get_a_quote.php on line 13
anyone have any ideas