Dotclear 2.25
Loading...
Searching...
No Matches
socketMail Class Reference

Send email through socket. More...

Static Public Member Functions

static mail (string $to, string $subject, string $message, $headers=null)
 

Static Public Attributes

static $fp
 
static $timeout = 10
 
static $smtp_relay = null
 

Detailed Description

Send email through socket.

Member Function Documentation

◆ 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$toEmail destination
string$subjectEmail subject
string$messageEmail message
string | array$headersEmail headers
Exceptions
Exception

References $message, and mail\getMX().

Field Documentation

◆ $fp

$fp
static

◆ $timeout

$timeout = 10
static

◆ $smtp_relay

$smtp_relay = null
static

The documentation for this class was generated from the following file: