i am learning the mail function of the php. I know i need to do some configuration in the php.ini file for the mail to work in my laptop.
I intend to do a test mail and send it to my gmail. may i know what i should change, i check it out and i am confused on what to do, it seems like it is all being set up i am unable to do the mail sending.
It gives me this message:
Thank you John for your email.
Your email address is test@test.com
Your message is
this is a test
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampplite\htdocs\xampp\elearning\samteach2\forms\sendmail.php on line 23
This is in my php.ini file.
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = postmaster@localhost
My question is win32 does it mean winxp? and the sendmail_from, i have to change it to the email that is to be sent to, the word " From" is confusing.
Thanks for any help.