PHPMailer version 5.2.4

PHPMailer - PHP email creation and transport class NOTE: Requires PHP version 5 or later

PHPMailer

Andy Prevost

Marcus Bointon

Jim Jagielski

2010 - 2012 Jim Jagielski

2004 - 2009 Andy Prevost

http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License

PHPMailer
\PHPMailer
PHP email creation and transport class

PHPMailer

STOP_MESSAGE
STOP_MESSAGE
0
STOP_CONTINUE
STOP_CONTINUE
1
STOP_CRITICAL
STOP_CRITICAL
2
CRLF
CRLF
"\r\n"
$Priority 3 Email priority (1 = High, 3 = Normal, 5 = low). `int` $CharSet 'iso-8859-1' Sets the CharSet of the message. `string` $ContentType 'text/plain' Sets the Content-type of the message. `string` $Encoding '8bit' Sets the Encoding of the message. <p>Options for this are "8bit", "7bit", "binary", "base64", and "quoted-printable".</p> `string` $ErrorInfo '' Holds the most recent mailer error message. `string` $From 'root@localhost' Sets the From email address for the message. `string` $FromName 'Root User' Sets the From name of the message. `string` $Sender '' Sets the Sender email (Return-Path) of the message. <p>If not empty, will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode.</p> `string` $ReturnPath '' Sets the Return-Path of the message. <p>If empty, it will be set to either From or Sender.</p> `string` $Subject '' Sets the Subject of the message. `string` $Body '' Sets the Body of the message. <p>This can be either an HTML or text body. If HTML then run IsHTML(true).</p> `string` $AltBody '' Sets the text-only body of the message. <p>This automatically sets the email to multipart/alternative. This body can be read by mail clients that do not have HTML email capability such as mutt. Clients that can read HTML will view the normal Body.</p> `string` $MIMEBody '' Stores the complete compiled MIME message body. `string` `` $MIMEHeader '' Stores the complete compiled MIME message headers. `string` `` $mailHeader '' Stores the extra header list which CreateHeader() doesn't fold in `string` `` $WordWrap 0 Sets word wrapping on the body of the message to a given number of characters. `int` $Mailer 'mail' Method to send mail: ("mail", "sendmail", or "smtp"). `string` $Sendmail '/usr/sbin/sendmail' Sets the path of the sendmail program. `string` $UseSendmailOptions true Determine if mail() uses a fully sendmail compatible MTA that supports sendmail's "-oi -f" options `boolean` $PluginDir '' Path to PHPMailer plugins. <p>Useful if the SMTP class is in a different directory than the PHP include path.</p> `string` $ConfirmReadingTo '' Sets the email address that a reading confirmation will be sent. `string` $Hostname '' Sets the hostname to use in Message-Id and Received headers and as default HELO string. <p>If empty, the value returned by SERVER_NAME is used or 'localhost.localdomain'.</p> `string` $MessageID '' Sets the message ID to be used in the Message-Id header. <p>If empty, a unique id will be generated.</p> `string` $MessageDate '' Sets the message Date to be used in the Date header. <p>If empty, the current date will be added.</p> `string` $Host 'localhost' Sets the SMTP hosts. <p>All hosts must be separated by a semicolon. You can also specify a different port for each host by using this format: [hostname:port] (e.g. "smtp1.example.com:25;smtp2.example.com"). Hosts will be tried in order.</p> `string` $Port 25 Sets the default SMTP server port. `int` $Helo '' Sets the SMTP HELO of the message (Default is $Hostname). `string` $SMTPSecure '' Sets connection prefix. <p>Options are "", "ssl" or "tls"</p> `string` $SMTPAuth false Sets SMTP authentication. <p>Utilizes the Username and Password variables.</p> `bool` $Username '' Sets SMTP username. `string` $Password '' Sets SMTP password. `string` $AuthType '' Sets SMTP auth type. <p>Options are LOGIN | PLAIN | NTLM (default LOGIN)</p> `string` $Realm '' Sets SMTP realm. <p>@var string</p> $Workstation '' Sets SMTP workstation. <p>@var string</p> $Timeout 10 Sets the SMTP server timeout in seconds. <p>This function will not work with the win32 version.</p> `int` $SMTPDebug false Sets SMTP class debugging on or off. `bool` $Debugoutput "echo" Sets the function/method to use for debugging output. <p>Right now we only honor "echo" or "error_log"</p> `string` $SMTPKeepAlive false Prevents the SMTP connection from being closed after each mail sending. <p>If this is set to true then to close the connection requires an explicit call to SmtpClose().</p> `bool` $SingleTo false Provides the ability to have the TO field process individual emails, instead of sending to entire TO addresses `bool` $SingleToArray array() If SingleTo is true, this provides the array to hold the email addresses `bool` $LE "\n" Provides the ability to change the generic line ending NOTE: The default remains '\n'. <p>We force CRLF where we KNOW it must be used via self::CRLF</p> `string` $DKIM_selector '' Used with DKIM Signing required parameter if DKIM is enabled <p>domain selector example domainkey</p> `string` $DKIM_identity '' Used with DKIM Signing required if DKIM is enabled, in format of email address 'you@yourdomain.com' typically used as the source of the email `string` $DKIM_passphrase '' Used with DKIM Signing optional parameter if your private key requires a passphras `string` $DKIM_domain '' Used with DKIM Singing required if DKIM is enabled, in format of email address 'domain.com' `string` $DKIM_private '' Used with DKIM Signing required if DKIM is enabled, path to private key file `string` $action_function '' Callback Action function name. <p>The function that handles the result of the send email action. It is called out by Send() for each email sent.</p> <p>Value can be: - 'function_name' for function names - 'Class::Method' for static method calls - array($object, 'Method') for calling methods on $object See http://php.net/is_callable manual page for more details.</p> <p>Parameters: bool $result result of the send action string $to email address of the recipient string $cc cc email addresses string $bcc bcc email addresses string $subject the subject string $body the email body string $from email address of sender</p> `string` $Version '5.2.4' Sets the PHPMailer Version number `string` $XMailer '' What to use in the X-Mailer header `string` $smtp null `\SMTP` `` $to array() `array` `` $cc array() `array` `` $bcc array() `array` `` $ReplyTo array() `array` `` $all_recipients array() `array` `` $attachment array() `array` `` $CustomHeader array() `array` `` $message_type '' `string` `` $boundary array() `array` `` $language array() `array` `` $error_count 0 `integer` `` $sign_cert_file '' `string` `` $sign_key_file '' `string` `` $sign_key_pass '' `string` `` $exceptions false `boolean` `` mail_passthru mail_passthru Calls actual mail() function, but in a safe_mode aware fashion Also, unless sendmail_path points to sendmail (or something that claims to be sendmail), don't pass params (not a perfect fix, but it will do) `string` `string` `string` `string` `string` `` `bool` $to $subject $body $header $params edebug edebug Outputs debugging info via user-defined method `string` $str __construct __construct Constructor `boolean` $exceptions false IsHTML IsHTML Sets message type to HTML. `bool` `void` $ishtml true IsSMTP IsSMTP Sets Mailer to send message using SMTP. `void` IsMail IsMail Sets Mailer to send message using PHP mail() function. `void` IsSendmail IsSendmail Sets Mailer to send message using the $Sendmail program. `void` IsQmail IsQmail Sets Mailer to send message using the qmail MTA. `void` AddAddress AddAddress Adds a "To" address. `string` `string` `boolean` $address $name '' AddCC AddCC Adds a "Cc" address. <p>Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.</p> `string` `string` `boolean` $address $name '' AddBCC AddBCC Adds a "Bcc" address. <p>Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.</p> `string` `string` `boolean` $address $name '' AddReplyTo AddReplyTo Adds a "Reply-to" address. `string` `string` `boolean` $address $name '' AddAnAddress AddAnAddress Adds an address to one of the recipient arrays Addresses that have been added already return false, but do not throw exceptions `string` `string` `string` `\phpmailerException` `boolean` `` $kind $address $name '' SetFrom SetFrom Set the From and FromName properties `string` `string` `int` `\phpmailerException` `boolean` $address $name '' $auto 1 ValidateAddress ValidateAddress Check that a string looks roughly like an email address should Static so it can be used without instantiation, public so people can overload Conforms to RFC5322: Uses *correct* regex on which FILTER_VALIDATE_EMAIL is based; So why not use FILTER_VALIDATE_EMAIL? Because it was broken to not allow a@b type valid addresses :( Some Versions of PHP break on the regex though, likely due to PCRE, so use the older validation method for those users. <p>(http://php.net/manual/en/pcre.installation.php)</p> `` `` `string` `boolean` `` `` $address Send Send Creates message and assigns Mailer. <p>If the message is not sent successfully then it returns false. Use the ErrorInfo variable to view description of the error.</p> `\phpmailerException` `bool` PreSend PreSend Prep mail by constructing all message entities `\phpmailerException` `bool` PostSend PostSend Actual Email transport function Send the email via the selected mechanism `\phpmailerException` `bool` SendmailSend SendmailSend Sends mail using the $Sendmail program. `string` `string` `\phpmailerException` `` `bool` $header $body MailSend MailSend Sends mail using the PHP mail() function. `string` `string` `\phpmailerException` `` `bool` $header $body SmtpSend SmtpSend Sends mail via SMTP using PhpSMTP Returns false if there is a bad MAIL FROM, RCPT, or DATA input. `string` `string` `\phpmailerException` `` `` `bool` $header $body SmtpConnect SmtpConnect Initiates a connection to an SMTP server. <p>Returns false if the operation failed.</p> `` `` `\phpmailerException` `bool` SmtpClose SmtpClose Closes the active SMTP session if one exists. `void` SetLanguage SetLanguage Sets the language for all class error messages. <p>Returns false if it cannot load the language file. The default language is English.</p> `string` `string` `bool` `` $langcode 'en' $lang_path 'language/' GetTranslations GetTranslations Return the current array of language strings `array` AddrAppend AddrAppend Creates recipient headers. `` `string` `array` `string` $type $addr AddrFormat AddrFormat Formats an address correctly. `` `string` `string` $addr WrapText WrapText Wraps message for use with mailers that do not automatically perform wrapping and for quoted-printable. <p>Original written by philippe.</p> `string` `integer` `boolean` `` `string` $message $length $qp_mode false UTF8CharBoundary UTF8CharBoundary Finds last character boundary prior to maxLength in a utf-8 quoted (printable) encoded string. <p>Original written by Colin Brown.</p> `` `string` `int` `int` $encodedText $maxLength SetWordWrap SetWordWrap Set the body wrapping. `` `void` CreateHeader CreateHeader Assembles message header. `` `string` GetMailMIME GetMailMIME Returns the message MIME. `` `string` GetSentMIMEMessage GetSentMIMEMessage Returns the MIME message (headers and body). <p>Only really valid post PreSend().</p> `` `string` CreateBody CreateBody Assembles the message body. <p>Returns an empty string on failure.</p> `` `\phpmailerException` `string` GetBoundary GetBoundary Returns the start of a message boundary. `` `string` `string` `string` `string` `string` $boundary $charSet $contentType $encoding EndBoundary EndBoundary Returns the end of a message boundary. `` `string` `string` $boundary SetMessageType SetMessageType Sets the message type. `` `void` HeaderLine HeaderLine Returns a formatted header line. `` `string` `string` `string` $name $value TextLine TextLine Returns a formatted mail line. `` `string` `string` $value AddAttachment AddAttachment Adds an attachment from a path on the filesystem. <p>Returns false if the file could not be found or accessed.</p> `string` `string` `string` `string` `\phpmailerException` `bool` $path $name '' $encoding 'base64' $type 'application/octet-stream' GetAttachments GetAttachments Return the current array of attachments `array` AttachAll AttachAll Attaches all fs, string, and binary attachments to the message. <p>Returns an empty string on failure.</p> `` `string` `string` `string` $disposition_type $boundary EncodeFile EncodeFile Encodes attachment in requested format. <p>Returns an empty string on failure.</p> `string` `string` `\phpmailerException` `` `` `string` $path $encoding 'base64' EncodeString EncodeString Encodes string to requested format. <p>Returns an empty string on failure.</p> `string` `string` `` `string` $str $encoding 'base64' EncodeHeader EncodeHeader Encode a header string to best (shortest) of Q, B, quoted or none. `` `string` `string` `string` $str $position 'text' HasMultiBytes HasMultiBytes Checks if a string contains multibyte characters. `` `string` `bool` $str Base64EncodeWrapMB Base64EncodeWrapMB Correctly encodes and wraps long multibyte strings for mail headers without breaking lines within a character. <p>Adapted from a function by paravoid at http://uk.php.net/manual/en/function.mb-encode-mimeheader.php</p> `` `string` `string` `string` $str $lf null EncodeQPphp EncodeQPphp Encode string to quoted-printable. <p>Only uses standard PHP, slow, but will always work</p> `` `string` `integer` `bool` `` `string` $input '' $line_max 76 $space_conv false EncodeQP EncodeQP Encode string to RFC2045 (6.7) quoted-printable format Uses a PHP5 stream filter to do the encoding about 64x faster than the old version Also results in same content as you started with after decoding `` `` `string` `integer` `boolean` `string` `` $string $line_max 76 $space_conv false EncodeQ EncodeQ Encode string to q encoding. `` `string` `string` `` `string` $str $position 'text' AddStringAttachment AddStringAttachment Adds a string or binary attachment (non-filesystem) to the list. <p>This method can be used to attach ascii or binary data, such as a BLOB record from a database.</p> `string` `string` `string` `string` `void` $string $filename $encoding 'base64' $type 'application/octet-stream' AddEmbeddedImage AddEmbeddedImage Adds an embedded attachment. <p>This can include images, sounds, and just about any other document. Make sure to set the $type to an image type. For JPEG images use "image/jpeg" and for GIF images use "image/gif".</p> `string` `string` `string` `string` `string` `bool` $path $cid $name '' $encoding 'base64' $type 'application/octet-stream' AddStringEmbeddedImage AddStringEmbeddedImage Adds an embedded stringified attachment. <p>This can include images, sounds, and just about any other document. Make sure to set the $type to an image type. For JPEG images use "image/jpeg" and for GIF images use "image/gif".</p> `string` `string` `string` `string` `string` `bool` $string $cid $name '' $encoding 'base64' $type 'application/octet-stream' InlineImageExists InlineImageExists Returns true if an inline attachment is present. `` `bool` AttachmentExists AttachmentExists Returns true if an attachment (non-inline) is present. `bool` AlternativeExists AlternativeExists Does this message have an alternative body set? `bool` ClearAddresses ClearAddresses Clears all recipients assigned in the TO array. <p>Returns void.</p> `void` ClearCCs ClearCCs Clears all recipients assigned in the CC array. <p>Returns void.</p> `void` ClearBCCs ClearBCCs Clears all recipients assigned in the BCC array. <p>Returns void.</p> `void` ClearReplyTos ClearReplyTos Clears all recipients assigned in the ReplyTo array. <p>Returns void.</p> `void` ClearAllRecipients ClearAllRecipients Clears all recipients assigned in the TO, CC and BCC array. <p>Returns void.</p> `void` ClearAttachments ClearAttachments Clears all previously set filesystem, string, and binary attachments. <p>Returns void.</p> `void` ClearCustomHeaders ClearCustomHeaders Clears all custom headers. <p>Returns void.</p> `void` SetError SetError Adds the error message to the error container. `` `string` `void` $msg RFCDate RFCDate Returns the proper RFC 822 formatted date. `` `string` `` ServerHostname ServerHostname Returns the server hostname or 'localhost.localdomain' if unknown. `` `string` Lang Lang Returns a message in the appropriate language. `` `string` `string` $key IsError IsError Returns true if an error occurred. `` `bool` FixEOL FixEOL Changes every end of line from CRLF, CR or LF to $this->LE. `` `string` `string` $str AddCustomHeader AddCustomHeader Adds a custom header. <p>$name value can be overloaded to contain both header name and value (name:value)</p> `` `string` `string` `void` $name $value null MsgHTML MsgHTML Evaluates the message and returns modifications for inline images and backgrounds `` `string` `string` `string` $message $basedir '' _mime_types _mime_types Gets the MIME type of the embedded or inline image `string` `` `string` `` $ext '' set set Set (or reset) Class Objects (variables) <p>Usage Example: $page->set('X-Priority', '3');</p> `` `string` `mixed` `\phpmailerException` `bool` `` $name $value '' SecureHeader SecureHeader Strips newlines to prevent header injection. `` `string` `string` $str Sign Sign Set the private key file and password to sign the message. `` `` `string` `string` $cert_filename $key_filename $key_pass DKIM_QP DKIM_QP Set the private key file and password to sign the message. `` `string` `string` $txt DKIM_Sign DKIM_Sign Generate DKIM signature `` `string` `string` $s DKIM_HeaderC DKIM_HeaderC Generate DKIM Canonicalization Header `` `string` `string` $s DKIM_BodyC DKIM_BodyC Generate DKIM Canonicalization Body `` `string` `string` $body DKIM_Add DKIM_Add Create the DKIM header, body, as new header `` `string` `string` `string` `string` $headers_line $subject $body doCallback doCallback Perform callback `boolean` `string` `string` `string` `string` `string` `string` $isSent $to $cc $bcc $subject $body $from null
\Exception
phpmailerException
\phpmailerException
Exception handler for PHPMailer

PHPMailer

errorMessage
errorMessage
Prettify error message output
string
check this worked
No short description for property $smtp
No short description for property $to
No short description for property $cc
No short description for property $bcc
No short description for property $ReplyTo
No short description for property $all_recipients
No short description for property $attachment
No short description for property $CustomHeader
No short description for property $message_type
No short description for property $boundary
No short description for property $language
No short description for property $error_count
No short description for property $sign_cert_file
No short description for property $sign_key_file
No short description for property $sign_key_pass
No short description for property $exceptions
PHPMailer - PHP POP Before SMTP Authentication Class NOTE: Designed for use with PHP version 5 and up

PHPMailer

Andy Prevost

Marcus Bointon

Jim Jagielski

2010 - 2012 Jim Jagielski

2004 - 2009 Andy Prevost

http://www.gnu.org/copyleft/lesser.html Distributed under the Lesser General Public License (LGPL)

POP3
\POP3
PHP POP-Before-SMTP Authentication Class
<p>Version 5.2.4</p>

: LGPL, see PHPMailer License Specifically for PHPMailer to allow POP before SMTP authentication. Does not yet work with APOP - if you have an APOP account, contact Jim Jagielski and we can test changes to this script. This class is based on the structure of the SMTP class originally authored by Chris Ryan This class is rfc 1939 compliant and implements all the commands required for POP3 connection, authentication and disconnection.

PHPMailer

Richard Davey (orig) <rich@corephp.co.uk>

Andy Prevost

Jim Jagielski

$POP3_PORT 110 Default POP3 port `int` $POP3_TIMEOUT 30 Default Timeout `int` $CRLF "\r\n" POP3 Carriage Return + Line Feed `string` $do_debug 2 Displaying Debug warnings? (0 = now, 1+ = yes) `int` $host POP3 Mail Server `string` $port POP3 Port `int` $tval POP3 Timeout Value `int` $username POP3 Username `string` $password POP3 Password `string` $Version '5.2.4' Sets the POP3 PHPMailer Version number `string` $pop_conn `resource` $connected `boolean` $error `array` __construct __construct Constructor, sets the initial values `` `\POP3` Authorise Authorise Combination of public events - connect, login, disconnect `` `string` `bool int` `bool int` `string` `string` `int` `bool` $host $port false $tval false $username $password $debug_level 0 Connect Connect Connect to the POP3 server `` `string` `bool int` `integer` `boolean` $host $port false $tval 30 Login Login Login to the POP3 server (does not support APOP yet) `` `string` `string` `boolean` $username '' $password '' Disconnect Disconnect Disconnect from the POP3 server `` getResponse getResponse Get the socket response back. <p>$size is the maximum number of bytes to retrieve</p> `` `integer` `string` $size 128 sendString sendString Send a string down the open socket connection to the POP3 server `` `string` `integer` $string checkResponse checkResponse Checks the POP3 server response for +OK or -ERR `` `string` `boolean` $string displayErrors displayErrors If debug is enabled, display the error message array `` catchWarning catchWarning Takes over from PHP for the socket warning handler `` `integer` `string` `string` `integer` $errno $errstr $errfile $errline
No short description for property $pop_conn
No short description for property $connected
No short description for property $error
PHPMailer - PHP SMTP email transport class NOTE: Designed for use with PHP version 5 and up

PHPMailer

Andy Prevost

Marcus Bointon

2004 - 2008 Andy Prevost

Jim Jagielski

2010 - 2012 Jim Jagielski

http://www.gnu.org/copyleft/lesser.html Distributed under the Lesser General Public License (LGPL)

ntlm_sasl_client.php
SMTP
\SMTP
PHP RFC821 SMTP client
<p>Implements all the RFC 821 SMTP commands except TURN which will always return a not implemented error. SMTP also provides some utility methods for sending mail to an SMTP server.</p>

Chris Ryan

PHPMailer

$SMTP_PORT 25 SMTP server port <p>@var int</p> $CRLF "\r\n" SMTP reply line ending (don't change) <p>@var string</p> $do_debug Sets whether debugging is turned on <p>@var bool</p> $Debugoutput "echo" Sets the function/method to use for debugging output. <p>Right now we only honor "echo" or "error_log"</p> `string` $do_verp false Sets VERP use on/off (default is off) <p>@var bool</p> $Timeout 15 Sets the SMTP timeout value for reads, in seconds `int` $Timelimit 30 Sets the SMTP timelimit value for reads, in seconds `int` $Version '5.2.4' Sets the SMTP PHPMailer Version number `string` $smtp_conn `resource` $error `string` $helo_rply `string` edebug edebug Outputs debugging info via user-defined method `string` $str __construct __construct Initialize the class so that the data is in a known state. `` `\SMTP` Connect Connect Connect to the server specified on the port specified. <p>If the port is not specified use the default SMTP_PORT. If tval is specified then a connection will try and be established with the server for that number of seconds. If tval is not specified the default is 30 seconds to try on the connection.</p> <p>SMTP CODE SUCCESS: 220 SMTP CODE FAILURE: 421</p> `` `string` `int` `int` `bool` $host $port 0 $tval 30 StartTLS StartTLS Initiate a TLS communication with the server. <p>SMTP CODE 220 Ready to start TLS SMTP CODE 501 Syntax error (no parameters allowed) SMTP CODE 454 TLS not available due to temporary reason</p> `` `bool` Authenticate Authenticate Performs SMTP authentication. <p>Must be run after running the Hello() method. Returns true if successfully authenticated.</p> `` `string` `string` `string` `string` `string` `bool` $username $password $authtype 'LOGIN' $realm '' $workstation '' Connected Connected Returns true if connected to a server otherwise false `` `bool` Close Close Closes the socket and cleans up the state of the class. <p>It is not considered good to use this function without first trying to use QUIT.</p> `` `void` Data Data Issues a data command and sends the msg_data to the server finializing the mail transaction. <p>$msg_data is the message that is to be send with the headers. Each header needs to be on a single line followed by a <CRLF> with the message headers and the message body being seperated by and additional <CRLF>.</p> <p>Implements rfc 821: DATA <CRLF></p> <p>SMTP CODE INTERMEDIATE: 354 [data] <CRLF>.<CRLF> SMTP CODE SUCCESS: 250 SMTP CODE FAILURE: 552,554,451,452 SMTP CODE FAILURE: 451,554 SMTP CODE ERROR : 500,501,503,421</p> `` `string` `bool` $msg_data Hello Hello Sends the HELO command to the smtp server. <p>This makes sure that we and the server are in the same known state.</p> <p>Implements from rfc 821: HELO <SP> <domain> <CRLF></p> <p>SMTP CODE SUCCESS: 250 SMTP CODE ERROR : 500, 501, 504, 421</p> `` `string` `bool` $host '' SendHello SendHello Sends a HELO/EHLO command. `` `string` `string` `bool` $hello $host Mail Mail Starts a mail transaction from the email address specified in $from. <p>Returns true if successful or false otherwise. If True the mail transaction is started and then one or more Recipient commands may be called followed by a Data command.</p> <p>Implements rfc 821: MAIL <SP> FROM:<reverse-path> <CRLF></p> <p>SMTP CODE SUCCESS: 250 SMTP CODE SUCCESS: 552,451,452 SMTP CODE SUCCESS: 500,501,421</p> `` `string` `bool` $from Quit Quit 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. <p>Implements from rfc 821: QUIT <CRLF></p> <p>SMTP CODE SUCCESS: 221 SMTP CODE ERROR : 500</p> `` `bool` `bool` $close_on_error true Recipient Recipient Sends the command RCPT to the SMTP server with the TO: argument of $to. <p>Returns true if the recipient was accepted false if it was rejected.</p> <p>Implements from rfc 821: RCPT <SP> TO:<forward-path> <CRLF></p> <p>SMTP CODE SUCCESS: 250,251 SMTP CODE FAILURE: 550,551,552,553,450,451,452 SMTP CODE ERROR : 500,501,503,421</p> `` `string` `bool` $to Reset Reset Sends the RSET command to abort and transaction that is currently in progress. <p>Returns true if successful false otherwise.</p> <p>Implements rfc 821: RSET <CRLF></p> <p>SMTP CODE SUCCESS: 250 SMTP CODE ERROR : 500,501,504,421</p> `` `bool` SendAndMail SendAndMail Starts a mail transaction from the email address specified in $from. <p>Returns true if successful or false otherwise. If True the mail transaction is started and then one or more Recipient commands may be called followed by a Data command. This command will send the message to the users terminal if they are logged in and send them an email.</p> <p>Implements rfc 821: SAML <SP> FROM:<reverse-path> <CRLF></p> <p>SMTP CODE SUCCESS: 250 SMTP CODE SUCCESS: 552,451,452 SMTP CODE SUCCESS: 500,501,502,421</p> `` `string` `bool` $from Turn Turn This is an optional command for SMTP that this class does not support. <p>This method is here to make the RFC821 Definition complete for this class and <strong>may</strong> be implimented in the future</p> <p>Implements from rfc 821: TURN <CRLF></p> <p>SMTP CODE SUCCESS: 250 SMTP CODE FAILURE: 502 SMTP CODE ERROR : 500, 503</p> `` `bool` getError getError Get the current error `` `array` get_lines get_lines Read in as many lines as possible either before eof or socket timeout occurs on the operation. <p>With SMTP we can tell if we have more lines to read if the 4th character is '-' symbol. If it is a space then we don't need to read anything else.</p> `` `string`
No short description for property $smtp_conn
No short description for property $error
No short description for property $helo_rply
todo
fixme