Re: Return-Path

From: Date: Fri, 05 Apr 2002 13:19:05 +0000
Subject: Re: Return-Path
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91699@lists.php.net to get a copy of this message
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@sbwresearch.com>\r\n", > (6) "Return-Path:<mail@sbwresearch.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@sbwresearch.com>\r\n". > (6) "Return-Path:<mail@sbwresearch.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 */

« previous php.general (#91699) next »