Forum Moderators: coopster

Message Too Old, No Replies

Mail ( ) problem php. please help

         

Flolondon

8:57 am on Mar 26, 2006 (gmt 0)

10+ Year Member



Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\XamppServer\xampp\htdocs\cars\emailus.php on line 21

1)I am trying to send email using the localhost and displaying the results to a php page but i dont get the full results.

2) Please help... apparently i went to the php.in configuration file root and changed the sendmail_from value to a localhost email address and apparently when looking at the phpinfo it did now show that the changes were made even after rebooting the computer etc.. no changes were made to the hardcore configuration file.

3) custom "From:" header missing in ...

is it statutory that one has to use "FROM" in the email script. when that could be part of the general message.

look forward to hearing .. thanks.

barns101

3:50 pm on Mar 26, 2006 (gmt 0)

10+ Year Member



After editing your php.ini file you need to restart the server for the changes to take effect.

Flolondon

4:40 pm on Mar 26, 2006 (gmt 0)

10+ Year Member



i did that, nothing happened...thanks...

barns101

6:51 am on Mar 27, 2006 (gmt 0)

10+ Year Member



I don't know much about server setup so you may want to inlucde the from address via the script instead.


mail($to,$subject,$message,"From: You <you@url.com>");