Method |
Description |
|
__construct ( string $host = 'localhost', integer $port = 25, string $helo = 'localhost', integer $timeout = 5 ) |
Creates an instance. |
|
__destruct ( ) |
Destroys an instance and disconnects from the server. |
|
auth ( string $user, string $password ) : self |
Connects to the server using a username and password. |
|
connect ( ) : self |
Connects to the SMTP server. |
|
data ( string $header, string $body ) : self |
Sends email headers and body. |
|
disconnect ( ) : self |
Disconnects from server. |
|
from ( string $from ) : self |
Sets the sender. |
|
recipient ( string $recipient ) : self |
Adds a recipient. |
|
reset ( ) : self |
Resets previous commands. |
|