$AltBody = ""
[line 96]
Sets the text-only body of the message. 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.
$attachment = array()
[line 217]
Tags:
$bcc = array()
[line 215]
Tags:
$Body = ""
[line 87]
Sets the Body of the message. This can be either an HTML or text body.
If HTML then run IsHTML(true).
$boundary = array()
[line 220]
Tags:
$cc = array()
[line 214]
Tags:
$CharSet = "iso-8859-1"
[line 36]
Sets the CharSet of the message.
$ConfirmReadingTo = ""
[line 134]
Sets the email address that a reading confirmation will be sent.
$ContentType = "text/plain"
[line 42]
Sets the Content-type of the message.
$CustomHeader = array()
[line 218]
Tags:
$Encoding = "8bit"
[line 49]
Sets the Encoding of the message. Options for this are "8bit", "7bit", "binary", "base64", and "quoted-printable".
$ErrorInfo = ""
[line 55]
Holds the most recent mailer error message.
$error_count = 0
[line 222]
Tags:
$From = "root@localhost"
[line 61]
Sets the From email address for the message.
$FromName = "Root User"
[line 67]
Sets the From name of the message.
$Helo = ""
[line 168]
Sets the SMTP HELO of the message (Default is $Hostname).
$Host = "localhost"
[line 156]
Sets the SMTP hosts. 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.
$Hostname = ""
[line 142]
Sets the hostname to use in Message-Id and Received headers and as default HELO string. If empty, the value returned by SERVER_NAME is used or 'localhost.localdomain'.
$language = array()
[line 221]
Tags:
$LE = "\n"
[line 223]
Tags:
$Mailer = "mail"
[line 109]
Method to send mail: ("mail", "sendmail", or "smtp").
$message_type = ""
[line 219]
Tags:
$Password = ""
[line 186]
Sets SMTP password.
$PluginDir = ""
[line 122]
Path to PHPMailer plugins. This is now only useful if the SMTP class is in a different directory than the PHP include path.
$Port = 25
[line 162]
Sets the default SMTP server port.
$Priority = 3
[line 30]
Email priority (1 = High, 3 = Normal, 5 = low).
$ReplyTo = array()
[line 216]
Tags:
$Sender = ""
[line 74]
Sets the Sender email (Return-Path) of the message. If not empty, will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode.
$Sendmail = "/usr/sbin/sendmail"
[line 115]
Sets the path of the sendmail program.
$smtp = NULL
[line 212]
Tags:
$SMTPAuth = false
[line 174]
Sets SMTP authentication. Utilizes the Username and Password variables.
$SMTPDebug = false
[line 199]
Sets SMTP class debugging on or off.
$SMTPKeepAlive = false
[line 207]
Prevents the SMTP connection from being closed after each mail sending. If this is set to true then to close the connection requires an explicit call to SmtpClose().
$Subject = ""
[line 80]
Sets the Subject of the message.
$Timeout = 10
[line 193]
Sets the SMTP server timeout in seconds. This function will not work with the win32 version.
$to = array()
[line 213]
Tags:
$Username = ""
[line 180]
Sets SMTP username.
$Version = "1.72"
[line 128]
Holds PHPMailer version.
$WordWrap = 0
[line 103]
Sets word wrapping on the body of the message to a given number of characters.
method AddAddress [line 286]
void AddAddress(
string
$address, [string
$name = ""])
|
|
Adds a "To" address.
Parameters:
method AddAttachment [line 996]
bool AddAttachment(
string
$path, [string
$name = ""], [string
$encoding = "base64"], [string
$type = "application/octet-stream"])
|
|
Adds an attachment from a path on the filesystem.
Returns false if the file could not be found or accessed.
Parameters:
method AddBCC [line 314]
void AddBCC(
string
$address, [string
$name = ""])
|
|
Adds a "Bcc" address. Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.
Parameters:
method AddCC [line 300]
void AddCC(
string
$address, [string
$name = ""])
|
|
Adds a "Cc" address. Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.
Parameters:
method AddCustomHeader [line 1492]
void AddCustomHeader(
$custom_header)
|
|
Adds a custom header.
Parameters:
method AddEmbeddedImage [line 1272]
bool AddEmbeddedImage(
string
$path, string
$cid, [string
$name = ""], [string
$encoding = "base64"], [string
$type = "application/octet-stream"])
|
|
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".
Parameters:
method AddrAppend [line 620]
string AddrAppend(
$type,
$addr)
|
|
Creates recipient headers.
Tags:
Parameters:
method AddReplyTo [line 326]
void AddReplyTo(
string
$address, [string
$name = ""])
|
|
Adds a "Reply-to" address.
Parameters:
method AddrFormat [line 638]
string AddrFormat(
$addr)
|
|
Formats an address correctly.
Tags:
Parameters:
method AddStringAttachment [line 1245]
void AddStringAttachment(
string
$string, string
$filename, [string
$encoding = "base64"], [string
$type = "application/octet-stream"])
|
|
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.
Parameters:
method AttachAll [line 1027]
Attaches all fs, string, and binary attachments to the message.
Returns an empty string on failure.
Tags:
method ClearAddresses [line 1326]
Clears all recipients assigned in the TO array. Returns void.
method ClearAllRecipients [line 1359]
void ClearAllRecipients(
)
|
|
Clears all recipients assigned in the TO, CC and BCC array. Returns void.
method ClearAttachments [line 1370]
Clears all previously set filesystem, string, and binary attachments. Returns void.
method ClearBCCs [line 1342]
Clears all recipients assigned in the BCC array. Returns void.
method ClearCCs [line 1334]
Clears all recipients assigned in the CC array. Returns void.
method ClearCustomHeaders [line 1378]
void ClearCustomHeaders(
)
|
|
Clears all custom headers. Returns void.
method ClearReplyTos [line 1350]
Clears all recipients assigned in the ReplyTo array. Returns void.
method CreateBody [line 855]
Assembles the message body. Returns an empty string on failure.
Tags:
method CreateHeader [line 757]
Assembles message header.
Tags:
method EncodeFile [line 1084]
string EncodeFile(
$path, [
$encoding = "base64"])
|
|
Encodes attachment in requested format. Returns an empty string on failure.
Tags:
Parameters:
method EncodeHeader [line 1134]
string EncodeHeader(
$str, [
$position = 'text'])
|
|
Encode a header string to best of Q, B, quoted or none.
Tags:
Parameters:
method EncodeQ [line 1211]
string EncodeQ(
$str, [
$position = "text"])
|
|
Encode string to q encoding.
Tags:
Parameters:
method EncodeQP [line 1188]
Encode string to quoted-printable.
Tags:
Parameters:
method EncodeString [line 1103]
string EncodeString(
$str, [
$encoding = "base64"])
|
|
Encodes string to requested format. Returns an empty string on failure.
Tags:
Parameters:
method EndBoundary [line 941]
void EndBoundary(
$boundary)
|
|
Returns the end of a message boundary.
Tags:
Parameters:
method FixEOL [line 1481]
Changes every end of line from CR or LF to CRLF.
Tags:
Parameters:
method GetBoundary [line 921]
void GetBoundary(
$boundary,
$charSet,
$contentType,
$encoding)
|
|
Returns the start of a message boundary.
Tags:
Parameters:
method HeaderLine [line 969]
string HeaderLine(
$name,
$value)
|
|
Returns a formatted header line.
Tags:
Parameters:
method InlineImageExists [line 1304]
bool InlineImageExists(
)
|
|
Returns true if an inline attachment is present.
Tags:
method IsError [line 1472]
Returns true if an error occurred.
method IsHTML [line 235]
Sets message type to HTML.
Parameters:
method IsMail [line 254]
Sets Mailer to send message using PHP mail() function.
method IsQmail [line 270]
Sets Mailer to send message using the qmail MTA.
method IsSendmail [line 262]
Sets Mailer to send message using the $Sendmail program.
method IsSMTP [line 246]
Sets Mailer to send message using SMTP.
method Lang [line 1458]
Returns a message in the appropriate language.
Tags:
Parameters:
method MailSend [line 421]
bool MailSend(
$header,
$body)
|
|
Sends mail using the PHP mail() function.
Tags:
Parameters:
method RFCDate [line 1403]
Returns the proper RFC 822 formatted date.
Tags:
method Send [line 343]
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.
method SendmailSend [line 391]
bool SendmailSend(
$header,
$body)
|
|
Sends mail using the $Sendmail program.
Tags:
Parameters:
method ServerHostname [line 1442]
Returns the server hostname or 'localhost.localdomain' if unknown.
Tags:
method ServerVar [line 1420]
mixed ServerVar(
$varName)
|
|
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.
Tags:
Parameters:
method SetError [line 1393]
Adds the error message to the error container.
Returns void.
Tags:
Parameters:
method SetLanguage [line 596]
bool SetLanguage(
string
$lang_type, [string
$lang_path = "language/"])
|
|
Sets the language for all class error messages. Returns false if it cannot load the language file. The default language type is English.
Tags:
Parameters:
method SetMessageType [line 950]
Sets the message type.
Tags:
method SetWordWrap [line 735]
Set the body wrapping.
Tags:
method SmtpClose [line 576]
Closes the active SMTP session if one exists.
method SmtpConnect [line 526]
Initiates a connection to an SMTP server. Returns false if the operation failed.
Tags:
method SmtpSend [line 459]
bool SmtpSend(
$header,
$body)
|
|
Sends mail via SMTP using PhpSMTP (Author: Chris Ryan). Returns bool. Returns false if there is a bad MAIL FROM, RCPT, or DATA input.
Tags:
Parameters:
method TextLine [line 978]
Returns a formatted mail line.
Tags:
Parameters:
method WrapText [line 657]
string WrapText(
$message,
$length, [
$qp_mode = false])
|
|
Wraps message for use with mailers that do not automatically perform wrapping and for quoted-printable.
Original written by philippe.
Tags:
Parameters: