Send email through socket.
More...
|
static | mail (string $to, string $subject, string $message, $headers=null) |
|
Send email through socket.
◆ mail()
static mail |
( |
string |
$to, |
|
|
string |
$subject, |
|
|
string |
$message, |
|
|
|
$headers = null |
|
) |
| |
|
static |
Send email through socket
This static method sends an email through a simple socket connection. If $smtp_relay
is set, it will be used as a relay to send the email. Instead, email is sent directly to MX host of domain.
- Parameters
-
string | $to | Email destination |
string | $subject | Email subject |
string | $message | Email message |
string | array | $headers | Email headers |
- Exceptions
-
References $message, and mail\getMX().
◆ $fp
◆ $timeout
◆ $smtp_relay
The documentation for this class was generated from the following file: