Page 1 of 1

[SOLVED] sendmail_form? Sendmail isn't working

Posted: Sun Mar 14, 2004 12:23 pm
by tristanlee85
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:

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');
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:

Code: Select all

[mail function]
; For Win32 only.
SMTP = mail.charter.net

; For Win32 only.
;sendmail_from = tristanlee1985@charter.net
I'm still getting the error. Any ideas?

Posted: Sun Mar 14, 2004 12:33 pm
by markl999
;sendmail_from = tristanlee1985@charter.net
Tried removing that ; ? (then restarting apache)

Posted: Sun Mar 14, 2004 12:50 pm
by tristanlee85
Well, I removed the ';'....but I forgot to restart :) I'll try that then post back.

Posted: Sun Mar 14, 2004 1:03 pm
by tristanlee85
Uhh, the restart fixed it. Sorry for the ignorant post. Thanks for you help!