ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-general
php-general
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved