On Friday 05 April 2002 20:49, Anthony Rodriguez wrote:
> Can you help me?
>
> When I call the following script:
>
> (1) <?php
> (2) mail("[EMAIL PROTECTED]",
> (3) "Test",
> (4) "Test",
> (5) "From:SBW Research <[EMAIL PROTECTED]>\r\n",
> (6) "Return-Path:<[EMAIL PROTECTED]>\r\n");
> (7) exit;
> (8) ?>
>
> I get the following error message:
>
> Warning: Wrong parameter count for mail() in ... (file_name) ... on line 6.
>
> By the way, I tried it with and w/o the \r.
>
> Any suggestions?
mail() is only supposed to take 4 parameters, but you're trying to feed it
with 5.
The last parameter (the 4th) can take any number of headers separated by by
'\r\n'. So try:
> (1) <?php
> (2) mail("[EMAIL PROTECTED]",
> (3) "Test",
> (4) "Test",
> (5) "From:SBW Research <[EMAIL PROTECTED]>\r\n".
> (6) "Return-Path:<[EMAIL PROTECTED]>\r\n");
> (7) exit;
> (8) ?>
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
CF&C stole it, fair and square.
-- Tim Hahn
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php