![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||||||||
LXIV. Mail FunctionsIntroductionThe mail() function allows you to send mail. RequirementsFor the Mail functions to be available, PHP must have access to the sendmail binary on your system during compile time. If you use another mail program, such as qmail or postfix, be sure to use the appropriate sendmail wrappers that come with them. PHP will first look for sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib. It's highly recommended to have sendmail available from your PATH. Also, the user that compiled PHP must have permission to access the sendmail binary. InstallationThere is no installation needed to use these functions; they are part of the PHP core. Runtime ConfigurationThe behaviour of these functions is affected by settings in php.ini.
Table 1. Mail configuration options
Here's a short explanation of the configuration directives.
Resource TypesThis extension has no resource types defined. Predefined ConstantsThis extension has no constants defined.
Copyright © 1997 - 2007 by the PHP Documentation Group. This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later. A copy of the Open Publication License is distributed with this manual, the latest version is presently available at http://www.opencontent.org/openpub/. Please see full copyright text at http://www.php.net/manual/en/copyright.php Original version of the above documentation is available at http://www.php.net/manual/en/ |
|