PhpMail function About PHP Mail
The mail () function allows you to send e-mail directly from a script.
Demand
For the mail function to be available, PHP needs an installed and running messaging system. The program you want to use is defined by the configuration settings in the php.ini file.
Installation
The Mail function is part of the PHP core. These functions can be used without installation.
Runtime Configuration
The behavior of the Mail function is affected by the settings in the php.ini file.
Mail configuration options:
name |
default |
Description |
can be changed |
Smtp |
"LocalHost" |
Windows-only: The DNS name or IP address of the SMTP server. |
Php_ini_all |
Smtp_port |
"25" |
Windows Dedicated: SMTP port number. Available from PHP 4.3. |
Php_ini_all |
Sendmail_from |
Null |
Windows Exclusive: Specifies the "from" address that is used in e-mail messages sent by PHP. |
Php_ini_all |
Sendmail_path |
Null |
Unix System-specific: Specifies the path to the SendMail program (usually/usr/sbin/sendmail or/usr/lib/sendmail). |
Php_ini_system |
PHP Mail functions
php: Indicates the earliest version of PHP that supports this function.
function |
Description |
PHP |
Ezmlm_hash () |
Computes the hash value required for the EZMLM mailing list system. |
3 |
Mail () |
Allows you to send e-mail directly from the script. |
3 |
PHP Mail Constants
No.
PHP Mail functions