[SOLVED] sendmail_form? Sendmail isn't working
Posted: Sun Mar 14, 2004 12:23 pm
Error:
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in c:\saturnspot\website\contact.php on line 136
mail not sent
Line 136:
I tried searching for 'php.ini' and I have it in 2 locations:
c:\nusphere\apache
c:\nusphere\apache\php
In both files, I changed the 'sendmail' info to this:
I'm still getting the error. Any ideas?
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in c:\saturnspot\website\contact.php on line 136
mail not sent
Line 136:
Code: Select all
mail($emailto, $subj, $mesg, 'From: '.$_POST['emaila'].''."\r\n".'Content-Type: text/html; charset=iso-8859-1\n Content-Transfer-Encoding: 8bit\n')or die('mail not sent');c:\nusphere\apache
c:\nusphere\apache\php
In both files, I changed the 'sendmail' info to this:
Code: Select all
[mail function]
; For Win32 only.
SMTP = mail.charter.net
; For Win32 only.
;sendmail_from = tristanlee1985@charter.net