SMTP plug-in.
More...
|
| | exists ($key) |
| |
| | set ($key, $val) |
| |
| & | get ($key) |
| |
| | clear ($key) |
| |
| | log () |
| |
| | attach ($file, $alias=NULL) |
| |
| | send ($message, $log=TRUE) |
| |
| | __construct ($host, $port, $scheme, $user, $pw) |
| |
| | exists ($key) |
| |
| | set ($key, $val) |
| |
| & | get ($key) |
| |
| | clear ($key) |
| |
| | offsetexists ($key) |
| |
| | offsetset ($key, $val) |
| |
| & | offsetget ($key) |
| |
| | offsetunset ($key) |
| |
| | __isset ($key) |
| |
| | __set ($key, $val) |
| |
| & | __get ($key) |
| |
| | __unset ($key) |
| |
|
|
| $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 |
| SMTP::attach |
( |
|
$file, |
|
|
|
$alias = NULL |
|
) |
| |
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: