I was trying to send email using gmail.
I configured both php.ini and sendmail.ini but i still get this error.
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\PhpProject1\index.php on line 14
Mail not sent!
please some one help me
here is the code for php.ini
SMTP = smtp.gmail.com ; http://php.net/smtp-port smtp_port = 587 ; For Win32 only. ; http://php.net/sendmail-from sendmail_from = [email protected] ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ; http://php.net/sendmail-path sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
please someone help me to correct this
thx in advance,