FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


question about mail function





roeenoy
i have a question about mail function
how much parameters are in the function?

thanks
Ducksteina
http://php.net/manual/en/function.mail.php
bladesage
There are only three arguments that are required, but a total of 5 possible.

Code:
$to = "an_address@somewhere.com";
$subject = "A subject here";
$message = "Stuff to mail goes here";

//This is optional:
$headers = "HEADERS HERE";
//The fifth one makes no sense, so I don't even bother with it

mail($to, $subject, $message, $headers);


Does this make sense to you?
Related topics
PHP Mail Function
PHP mail function ?
Php mail function
Mail() function and SMTP
PHP mail() Function
SMTP, sendmail e PHP mail function
PHP mail() function...
Using mail() func on Frihost
How will I know if the mail is delievered or not ??
Problem with mail function
SMTP server question
Where is the Mail cgi located?
mail
php mail and BCC
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.