Re: [PHP] Return-Path
by Jason Wong other posts by this author
Apr 5 2002 1:19PM messages near this date
[PHP] Return-Path
|
[PHP] Sockets with windows / win32 - 'call to undefined function: ...'
On Friday 05 April 2002 20:49, Anthony Rodriguez wrote:
> Can you help me?
>
> When I call the following script:
>
> (1) <?php
> (2) mail("afrodriguez@att.net",
> (3) "Test",
> (4) "Test",
> (5) "From:SBW Research <mail@[...].com>\r\n",
> (6) "Return-Path:<mail@[...].com>\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("afrodriguez@att.net",
> (3) "Test",
> (4) "Test",
> (5) "From:SBW Research <mail@[...].com>\r\n".
> (6) "Return-Path:<mail@[...].com>\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
Thread:
Anthony Rodriguez
Jason Wong
|