Definition at line 36 of file class.smtp.php.
Public Member Functions | |
| __construct () | |
| #@- | |
| Authenticate ($username, $password) | |
| Performs SMTP authentication. | |
| Close () | |
| Closes the socket and cleans up the state of the class. | |
| Connect ($host, $port=0, $tval=30) | |
| Connect to the server specified on the port specified. | |
| Connected () | |
| Returns true if connected to a server otherwise false public. | |
| Data ($msg_data) | |
| Issues a data command and sends the msg_data to the server finializing the mail transaction. | |
| Expand ($name) | |
| Expand takes the name and asks the server to list all the people who are members of the _list_. | |
| Hello ($host="") | |
| Sends the HELO command to the smtp server. | |
| Help ($keyword="") | |
| Gets help information on the keyword specified. | |
| Mail ($from) | |
| Starts a mail transaction from the email address specified in $from. | |
| Noop () | |
| Sends the command NOOP to the SMTP server. | |
| Quit ($close_on_error=true) | |
| Sends the quit command to the server and then closes the socket if there is no error or the $close_on_error argument is true. | |
| Recipient ($to) | |
| Sends the command RCPT to the SMTP server with the TO: argument of $to. | |
| Reset () | |
| Sends the RSET command to abort and transaction that is currently in progress. | |
| Send ($from) | |
| Starts a mail transaction from the email address specified in $from. | |
| SendAndMail ($from) | |
| Starts a mail transaction from the email address specified in $from. | |
| SendOrMail ($from) | |
| Starts a mail transaction from the email address specified in $from. | |
| StartTLS () | |
| Initiate a TSL communication with the server. | |
| Turn () | |
| This is an optional command for SMTP that this class does not support. | |
| Verify ($name) | |
| Verifies that the name is recognized by the server. | |
Public Attributes | |
| $CRLF = "\r\n" | |
| $do_debug | |
| $do_verp = false | |
| $SMTP_PORT = 25 | |
Private Member Functions | |
| get_lines () | |
| Read in as many lines as possible either before eof or socket timeout occurs on the operation. | |
| SendHello ($hello, $host) | |
| Sends a HELO/EHLO command. | |
Private Attributes | |
| $error | |
| $helo_rply | |
| $smtp_conn | |
| #@+ private | |
1.5.6