Located in /classes/mail/smtp.class.php (line 33)
Constructor function. Arguments: $params - An assoc array of parameters:
host - The hostname of the smtp server Default: localhost port - The port the smtp server runs on Default: 25 helo - What to send as the HELO command Default: localhost (typically the hostname of the machine this script runs on) auth - Whether to use basic authentication Default: FALSE user - Username for authentication Default: <blank> pass - Password for authentication Default: <blank> timeout - The timeout in seconds for the call Default: 5 to fsockopen()
Function to implement AUTH cmd
Connect function. This will, when called
statically, create a new smtp object, call the connect function (ie this function) and return it. When not called statically, it will connect to the server and send the HELO command.
Function that sends the DATA cmd
Function to implement EHLO cmd
Function to get data.
Function to implement HELO cmd
Function to determine if this object is connected to the server or not.
Function that handles the MAIL FROM: cmd
Function to implement QUIT cmd
Function that handles the RCPT TO: cmd
Function to implement RSET cmd
Function which handles sending the mail.
Arguments: $params - Optional assoc array of parameters. Can contain: recipients - Indexed array of recipients from - The from address. (used in MAIL FROM:), this will be the return path headers - Indexed array of headers, one header per array entry body - The body of the email It can also contain any of the parameters from the connect() function
Function to send a bit of data
Sets a variable
Documentation generated on Fri, 28 Dec 2007 21:39:14 +0100 by phpDocumentor 1.3.0RC3