Page 1 of 1

sendmail_from

PostPosted: 01. December 2007 18:09
by SirChick
How do i turn my mail settings on so that it will work
sendmail_from no value no value
sendmail_path no value no value



At the mome it says that ^ and i get this error:


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


How do you turn it on :S

PostPosted: 01. December 2007 19:32
by Wiedmann
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\test4.php on line 8

a) set the sendmail_from in php.ini
b) or set a "From: ..." header in the 3rd parameter from mail().

PostPosted: 01. December 2007 19:53
by SirChick
How do you do a) ? i've been trying work out how but have no idea..

PostPosted: 01. December 2007 20:00
by Wiedmann
How do you do a)

- open "php.ini" in your editor
- search the line with "sendmail_from"
- remove the ";"
- change the email to a correct one
- save the "php.ini"
- restart Apache