Public Member Functions | |
IsHTML ($bool) | |
Sets message type to HTML. | |
IsSMTP () | |
Sets Mailer to send message using SMTP. | |
IsMail () | |
Sets Mailer to send message using PHP mail() function. | |
IsSendmail () | |
Sets Mailer to send message using the $Sendmail program. | |
IsQmail () | |
Sets Mailer to send message using the qmail MTA. | |
AddAddress ($address, $name="") | |
Adds a "To" address. | |
AddCC ($address, $name="") | |
Adds a "Cc" address. | |
AddBCC ($address, $name="") | |
Adds a "Bcc" address. | |
AddReplyTo ($address, $name="") | |
Adds a "Reply-to" address. | |
Send () | |
Creates message and assigns Mailer. | |
SendmailSend ($header, $body) | |
Sends mail using the $Sendmail program. | |
MailSend ($header, $body) | |
Sends mail using the PHP mail() function. | |
SmtpSend ($header, $body) | |
Sends mail via SMTP using PhpSMTP (Author: Chris Ryan). | |
SmtpConnect () | |
Initiates a connection to an SMTP server. | |
SmtpClose () | |
Closes the active SMTP session if one exists. | |
SetLanguage ($lang_type, $lang_path="language/") | |
Sets the language for all class error messages. | |
AddrAppend ($type, $addr) | |
Creates recipient headers. | |
AddrFormat ($addr) | |
Formats an address correctly. | |
WrapText ($message, $length, $qp_mode=false) | |
Wraps message for use with mailers that do not automatically perform wrapping and for quoted-printable. | |
SetWordWrap () | |
Set the body wrapping. | |
CreateHeader () | |
Assembles message header. | |
Public Attributes | |
$Priority = 3 | |
$CharSet = "iso-8859-1" | |
$ContentType = "text/plain" | |
$Encoding = "8bit" | |
$ErrorInfo = "" | |
$From = "root@localhost" | |
$FromName = "Root User" | |
$Sender = "" | |
$Subject = "" | |
$Body = "" | |
$AltBody = "" | |
$WordWrap = 0 | |
$Mailer = "mail" | |
$Sendmail = "/usr/sbin/sendmail" | |
$PluginDir = "" | |
$Version = "1.73" | |
$ConfirmReadingTo = "" | |
$Hostname = "" | |
$Host = "localhost" | |
$Port = 25 | |
$Helo = "" | |
$SMTPAuth = false | |
$Username = "" | |
$Password = "" | |
$Timeout = 10 | |
$SMTPDebug = false | |
$SMTPKeepAlive = false | |
$smtp = NULL | |
#@+ private | |
$to = array() | |
$cc = array() | |
$bcc = array() | |
$ReplyTo = array() | |
$attachment = array() | |
$CustomHeader = array() | |
$message_type = "" | |
$boundary = array() | |
$language = array() | |
$error_count = 0 | |
$LE = "\n" |
|
Adds a "To" address.
Definition at line 286 of file class.phpmailer.php. |
|
Adds a "Bcc" address. Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.
Definition at line 314 of file class.phpmailer.php. |
|
Adds a "Cc" address. Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.
Definition at line 300 of file class.phpmailer.php. |
|
Creates recipient headers. private
Definition at line 620 of file class.phpmailer.php. |
|
Adds a "Reply-to" address.
Definition at line 326 of file class.phpmailer.php. |
|
Formats an address correctly. private
Definition at line 638 of file class.phpmailer.php. |
|
Assembles message header. private
Returns the start of a message boundary. private Returns the end of a message boundary. private Sets the message type. private
Returns a formatted header line. private
Returns a formatted mail line. private
Adds an attachment from a path on the filesystem. Returns false if the file could not be found or accessed.
Attaches all fs, string, and binary attachments to the message. Returns an empty string on failure. private
Encodes attachment in requested format. Returns an empty string on failure. private
Encodes string to requested format. Returns an empty string on failure. private
Encode a header string to best of Q, B, quoted or none. private
Adds a string or binary attachment (non-filesystem) to the list. This method can be used to attach ascii or binary data, such as a BLOB record from a database.
Adds an embedded attachment. 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".
Returns true if an inline attachment is present. private
Clears all recipients assigned in the TO array. Returns void.
Clears all recipients assigned in the CC array. Returns void.
Clears all recipients assigned in the BCC array. Returns void.
Clears all recipients assigned in the ReplyTo array. Returns void.
Clears all recipients assigned in the TO, CC and BCC array. Returns void.
Clears all previously set filesystem, string, and binary attachments. Returns void.
Clears all custom headers. Returns void.
Adds the error message to the error container. Returns void. private
Returns the proper RFC 822 formatted date. private
Returns the appropriate server variable. Should work with both PHP 4.1.0+ as well as older versions. Returns an empty string if nothing is found. private
Returns the server hostname or 'localhost.localdomain' if unknown. private
Returns a message in the appropriate language. private
Returns true if an error occurred.
Changes every end of line from CR or LF to CRLF. private
Adds a custom header.
Definition at line 757 of file class.phpmailer.php. |
|
Sets message type to HTML.
Definition at line 235 of file class.phpmailer.php. |
|
Sets Mailer to send message using PHP mail() function.
Definition at line 254 of file class.phpmailer.php. |
|
Sets Mailer to send message using the qmail MTA.
Definition at line 270 of file class.phpmailer.php. |
|
Sets Mailer to send message using the $Sendmail program.
Definition at line 262 of file class.phpmailer.php. |
|
Sets Mailer to send message using SMTP.
Definition at line 246 of file class.phpmailer.php. |
|
Sends mail using the PHP mail() function. private
Definition at line 421 of file class.phpmailer.php. |
|
Creates message and assigns Mailer. If the message is not sent successfully then it returns false. Use the ErrorInfo variable to view description of the error.
Definition at line 343 of file class.phpmailer.php. |
|
Sends mail using the $Sendmail program. private
Definition at line 391 of file class.phpmailer.php. |
|
Sets the language for all class error messages. Returns false if it cannot load the language file. The default language type is English.
Definition at line 596 of file class.phpmailer.php. |
|
Set the body wrapping. private
Definition at line 735 of file class.phpmailer.php. |
|
Closes the active SMTP session if one exists.
Definition at line 576 of file class.phpmailer.php. |
|
Initiates a connection to an SMTP server. Returns false if the operation failed. private
Definition at line 526 of file class.phpmailer.php. |
|
Sends mail via SMTP using PhpSMTP (Author: Chris Ryan). Returns bool. Returns false if there is a bad MAIL FROM, RCPT, or DATA input. private
Definition at line 459 of file class.phpmailer.php. |
|
Wraps message for use with mailers that do not automatically perform wrapping and for quoted-printable. Original written by philippe. private
Definition at line 657 of file class.phpmailer.php. |
|
Definition at line 96 of file class.phpmailer.php. |
|
Definition at line 217 of file class.phpmailer.php. |
|
Definition at line 215 of file class.phpmailer.php. |
|
Definition at line 87 of file class.phpmailer.php. |
|
Definition at line 220 of file class.phpmailer.php. |
|
Definition at line 214 of file class.phpmailer.php. |
|
Definition at line 36 of file class.phpmailer.php. |
|
Definition at line 134 of file class.phpmailer.php. |
|
Definition at line 42 of file class.phpmailer.php. |
|
Definition at line 218 of file class.phpmailer.php. |
|
Definition at line 49 of file class.phpmailer.php. |
|
Definition at line 222 of file class.phpmailer.php. |
|
Definition at line 55 of file class.phpmailer.php. |
|
Definition at line 61 of file class.phpmailer.php. |
|
Definition at line 67 of file class.phpmailer.php. |
|
Definition at line 168 of file class.phpmailer.php. |
|
Definition at line 156 of file class.phpmailer.php. |
|
Definition at line 142 of file class.phpmailer.php. |
|
Definition at line 221 of file class.phpmailer.php. |
|
Definition at line 223 of file class.phpmailer.php. |
|
Definition at line 109 of file class.phpmailer.php. |
|
Definition at line 219 of file class.phpmailer.php. |
|
Definition at line 186 of file class.phpmailer.php. |
|
Definition at line 122 of file class.phpmailer.php. |
|
Definition at line 162 of file class.phpmailer.php. |
|
Definition at line 30 of file class.phpmailer.php. |
|
Definition at line 216 of file class.phpmailer.php. |
|
Definition at line 74 of file class.phpmailer.php. |
|
Definition at line 115 of file class.phpmailer.php. |
|
#@+ private
Definition at line 212 of file class.phpmailer.php. |
|
Definition at line 174 of file class.phpmailer.php. |
|
Definition at line 199 of file class.phpmailer.php. |
|
Definition at line 207 of file class.phpmailer.php. |
|
Definition at line 80 of file class.phpmailer.php. |
|
Definition at line 193 of file class.phpmailer.php. |
|
Definition at line 213 of file class.phpmailer.php. |
|
Definition at line 180 of file class.phpmailer.php. |
|
Definition at line 128 of file class.phpmailer.php. |
|
Definition at line 103 of file class.phpmailer.php. |