Error using mail() - sendmail_from not set in php.ini or custom From: missing
From: Edo van der Zouwen (ezouwen_at_gebruikershierwetendomeinwel)
Date: 01/31/04
- Next message: Phil Roberts: "Re: General Guidance Sought on Using Style Position"
- Previous message: Bruno Desthuilliers: "Re: structures in php ?"
- Next in thread: Red Eye Media - Richard Grove: "Re: Error using mail() - sendmail_from not set in php.ini or custom From: missing"
- Reply: Red Eye Media - Richard Grove: "Re: Error using mail() - sendmail_from not set in php.ini or custom From: missing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 31 Jan 2004 11:16:42 -0000
Hi,
This is the error:
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:"
header missing in c:\lserver\test\sendform.php on line 10
This is the code:
<?
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
$from = "From: $email\r\n";
mail( "webquestion@myaddress.com", "Question", $message, $from );
?>
This is from php.ini
[mail function]
; For Win32 only.
SMTP = localhost
; For Win32 only.
sendmail_from = me@localhost.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -
i").
;sendmail_path =
Using Apache 1.3.28 / PhP 4.3.2 on Windows XP. So far other (simple)
scripts worked fine.
Tried everything. Searched the web, there are more people having this
problem, but couldn't find a solution (nor could they....)
Hope anybody can help, I'm getting crazy.........
Thanks,
Edo.
- Next message: Phil Roberts: "Re: General Guidance Sought on Using Style Position"
- Previous message: Bruno Desthuilliers: "Re: structures in php ?"
- Next in thread: Red Eye Media - Richard Grove: "Re: Error using mail() - sendmail_from not set in php.ini or custom From: missing"
- Reply: Red Eye Media - Richard Grove: "Re: Error using mail() - sendmail_from not set in php.ini or custom From: missing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|