WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

PHP 5 Mail Functions


PHP Mail Introduction

The mail() work enables you to send messages specifically from a script.


Requirements

For the mail capacities to be accessible, PHP requires an introduced and working email framework. The program to be utilized is characterized by the arrangement settings in the php.ini file.


Installation

The mail capacities are a piece of the PHP center. There is no establishment expected to utilize these functions.


Runtime Configuration

The conduct of the mail capacities is influenced by settings in php.ini:

Name Default Description Changeable
mail.add_x_header "0" Add X-PHP-Originating-Script that will incorporate UID of the content pursued by the filename. For PHP 5.3.0 and above PHP_INI_PERDIR
mail.log NULL The way to a log record that will log all mail() calls. Log  incorporate full way of content, line number, To address and headers. For PHP 5.3.0 and above PHP_INI_PERDIR
SMTP "localhost" Windows just: The DNS name or IP address of the SMTP server PHP_INI_ALL
smtp_port "25" Windows just: The SMTP port number. For PHP 4.3.0 and above PHP_INI_ALL
sendmail_from NULL Windows just: Specifies the "from" address to be utilized when sending letters from mail() PHP_INI_ALL
sendmail_path "/usr/sbin/sendmail - t - i" Specifies where the sendmail program can be found. This mandate works likewise under Windows. Whenever set, SMTP, smtp_port and sendmail_from are disregarded PHP_INI_SYSTEM

PHP 5 Mail Functions

Function Description
ezmlm_hash() Calculates the hash esteem required by EZMLM
mail() Allows you to send messages specifically from a script