SMTP plug-in.
More...
|
| $attachments |
| E-mail attachments.
|
|
| $host |
| SMTP host.
|
|
| $port |
| SMTP port.
|
|
| $scheme |
| TLS/SSL.
|
|
| $user |
| User ID.
|
|
| $pw |
| Password.
|
|
| $socket |
| TCP/IP socket.
|
|
| $log |
| Server-client conversation.
|
|
|
const | E_Header ='%s: header is required' |
|
const | E_Blank ='Message must not be blank' |
|
const | E_Attach ='Attachment %s not found' |
|
SMTP::__construct |
( |
|
$host, |
|
|
|
$port, |
|
|
|
$scheme, |
|
|
|
$user, |
|
|
|
$pw |
|
) |
| |
Instantiate class
- Parameters
-
$host | string |
$port | int |
$scheme | string |
$user | string |
$pw | string |
Add e-mail attachment
- Returns
- NULL
- Parameters
-
Remove header
- Returns
- NULL
- Parameters
-
SMTP::dialog |
( |
|
$cmd = NULL , |
|
|
|
$log = TRUE |
|
) |
| |
|
protected |
Send SMTP command and record server response
- Returns
- string
- Parameters
-
Return TRUE if header exists
- Returns
- bool
- Parameters
-
Fix header
- Returns
- string
- Parameters
-
Return value of e-mail header
- Returns
- string|NULL
- Parameters
-
Return client-server conversation history
- Returns
- string
SMTP::send |
( |
|
$message, |
|
|
|
$log = TRUE |
|
) |
| |
Transmit message
- Returns
- bool
- Parameters
-
Bind value to e-mail header
- Returns
- string
- Parameters
-
The documentation for this class was generated from the following file: