$action_function = ''
[line 225]
Callback Action function name
the function that handles the result of the send email action. 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
Tags:
$AltBody = ''
[line 119]
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.
Tags:
$Body = ''
[line 110]
Sets the Body of the message. This can be either an HTML or text body.
If HTML then run IsHTML(true).
Tags:
$CharSet = 'iso-8859-1'
[line 59]
Sets the CharSet of the message.
Tags:
$ConfirmReadingTo = ''
[line 144]
Sets the email address that a reading confirmation will be sent.
Tags:
$ContentType = 'text/plain'
[line 65]
Sets the Content-type of the message.
Tags:
$DKIM_domain = ''
[line 198]
Used with DKIM DNS Resource Record
required, in format of base domain 'yourdomain.com'
Tags:
$DKIM_identity = ''
[line 191]
Used with DKIM DNS Resource Record
optional, in format of email address 'you@yourdomain.com'
Tags:
$DKIM_passphrase = ''
[line 205]
Used with DKIM Digital Signing process
optional
Tags:
$DKIM_private = ''
[line 212]
Used with DKIM DNS Resource Record
required, private key (read from /.htprivkey)
Tags:
$DKIM_selector = 'phpmailer'
[line 184]
Used with DKIM DNS Resource Record
Tags:
$Encoding = '8bit'
[line 72]
Sets the Encoding of the message. Options for this are "8bit", "7bit", "binary", "base64", and "quoted-printable".
Tags:
$ErrorInfo = ''
[line 78]
Holds the most recent mailer error message.
Tags:
$From = 'root@localhost'
[line 84]
Sets the From email address for the message.
Tags:
$FromName = 'Root User'
[line 90]
Sets the From name of the message.
Tags:
$Hostname = ''
[line 152]
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'.
Tags:
$language = array()
[line 246]
Tags:
$LE = "\n"
[line 178]
Provides the ability to change the line ending
Tags:
$Mailer = 'sendmail'
[line 132]
Method to send mail: ("mail", or "sendmail").
Tags:
$MessageID = ''
[line 159]
Sets the message ID to be used in the Message-Id header.
If empty, a unique id will be generated.
Tags:
$Priority = 3
[line 53]
Email priority (1 = High, 3 = Normal, 5 = low).
Tags:
$Sender = ''
[line 97]
Sets the Sender email (Return-Path) of the message. If not empty,
will be sent via -f to sendmail
Tags:
$Sendmail = '/usr/sbin/sendmail'
[line 138]
Sets the path of the sendmail program.
Tags:
$SingleTo = true
[line 166]
Provides the ability to have the TO field process individual
emails, instead of sending to entire TO addresses
Tags:
$SingleToArray = array()
[line 172]
If SingleTo is true, this provides the array to hold the email addresses
Tags:
$Subject = ''
[line 103]
Sets the Subject of the message.
Tags:
$Version = 'Lite 5.1'
[line 231]
Sets the PHPMailer Version number
Tags:
$WordWrap = 0
[line 126]
Sets word wrapping on the body of the message to a given number of characters.
Tags:
static method RFCDate [line 1679]
Returns the proper RFC 822 formatted date.
Tags:
static method ValidateAddress [line 442]
static boolean ValidateAddress(
string
$address)
|
|
Check that a string looks roughly like an email address should
Static so it can be used without instantiation Tries to use PHP built-in validator in the filter extension (from PHP 5.2), falls back to a reasonably competent regex validator Conforms approximately to RFC2822
Tags:
Parameters:
static method _mime_types [line 1796]
static string _mime_types(
[string
$ext = ''])
|
|
Gets the MIME type of the embedded or inline image
Tags:
Parameters:
constructor __construct [line 269]
PHPMailerLite __construct(
[boolean
$exceptions = false])
|
|
Constructor
Tags:
Parameters:
method AddAddress [line 326]
boolean AddAddress(
string
$address, [string
$name = ''])
|
|
Adds a "To" address.
Tags:
Parameters:
method AddAttachment [line 1105]
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.
Tags:
Parameters:
method AddBCC [line 348]
boolean AddBCC(
string
$address, [string
$name = ''])
|
|
Adds a "Bcc" address.
Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.
Tags:
Parameters:
method AddCC [line 337]
boolean AddCC(
string
$address, [string
$name = ''])
|
|
Adds a "Cc" address.
Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.
Tags:
Parameters:
method AddCustomHeader [line 1749]
void AddCustomHeader(
$custom_header)
|
|
Adds a custom header.
Tags:
Parameters:
method AddEmbeddedImage [line 1544]
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".
Tags:
Parameters:
method AddrAppend [line 660]
string AddrAppend(
$type,
$addr)
|
|
Creates recipient headers.
Tags:
Parameters:
method AddReplyTo [line 358]
boolean AddReplyTo(
string
$address, [string
$name = ''])
|
|
Adds a "Reply-to" address.
Tags:
Parameters:
method AddrFormat [line 677]
string AddrFormat(
$addr)
|
|
Formats an address correctly.
Tags:
Parameters:
method AddStringAttachment [line 1517]
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.
Tags:
Parameters:
method Base64EncodeWrapMB [line 1360]
string Base64EncodeWrapMB(
string
$str)
|
|
Correctly encodes and wraps long multibyte strings for mail headers without breaking lines within a character.
Adapted from a function by paravoid at http://uk.php.net/manual/en/function.mb-encode-mimeheader.php
Tags:
Parameters:
method ClearAddresses [line 1593]
Clears all recipients assigned in the TO array. Returns void.
Tags:
method ClearAllRecipients [line 1635]
void ClearAllRecipients(
)
|
|
Clears all recipients assigned in the TO, CC and BCC array. Returns void.
Tags:
method ClearAttachments [line 1647]
Clears all previously set filesystem, string, and binary attachments. Returns void.
Tags:
method ClearBCCs [line 1615]
Clears all recipients assigned in the BCC array. Returns void.
Tags:
method ClearCCs [line 1604]
Clears all recipients assigned in the CC array. Returns void.
Tags:
method ClearCustomHeaders [line 1655]
void ClearCustomHeaders(
)
|
|
Clears all custom headers. Returns void.
Tags:
method ClearReplyTos [line 1626]
Clears all recipients assigned in the ReplyTo array. Returns void.
Tags:
method CreateBody [line 951]
Assembles the message body. Returns an empty string on failure.
Tags:
method CreateHeader [line 834]
Assembles message header.
Tags:
method DKIM_Add [line 2026]
void DKIM_Add(
string
$headers_line, string
$subject, string
$body)
|
|
Create the DKIM header, body, as new header
Tags:
Parameters:
method DKIM_BodyC [line 2006]
void DKIM_BodyC(
string
$body)
|
|
Generate DKIM Canonicalization Body
Tags:
Parameters:
method DKIM_HeaderC [line 1987]
void DKIM_HeaderC(
string
$s)
|
|
Generate DKIM Canonicalization Header
Tags:
Parameters:
method DKIM_QP [line 1949]
void DKIM_QP(
$txt, string
$key_filename, string
$key_pass)
|
|
Set the private key file and password to sign the message.
Tags:
Parameters:
method DKIM_Sign [line 1969]
void DKIM_Sign(
string
$s)
|
|
Generate DKIM signature
Tags:
Parameters:
method doCallback [line 2061]
void doCallback(
$isSent,
$to,
$cc,
$bcc,
$subject,
$body)
|
|
Tags:
Parameters:
method EncodeHeader [line 1283]
string EncodeHeader(
$str, [
$position = 'text'])
|
|
Encode a header string to best (shortest) of Q, B, quoted or none.
Tags:
Parameters:
method EncodeQ [line 1482]
string EncodeQ(
string
$str, [string
$position = 'text'])
|
|
Encode string to q encoding.
Tags:
Parameters:
method EncodeQP [line 1453]
string EncodeQP(
string
$string, [integer
$line_max = 76], [boolean
$space_conv = false])
|
|
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
Tags:
Parameters:
method EncodeQPphp [line 1400]
string EncodeQPphp(
[
$input = ''], [integer
$line_max = 76], [
$space_conv = false], string
$string)
|
|
Encode string to quoted-printable.
Only uses standard PHP, slow, but will always work
Tags:
Parameters:
method EncodeString [line 1252]
string EncodeString(
string
$str, [string
$encoding = 'base64'])
|
|
Encodes string to requested format.
Returns an empty string on failure.
Tags:
Parameters:
method GetAttachments [line 1143]
Return the current array of attachments
Tags:
method GetMailMIME [line 917]
Returns the message MIME.
Tags:
method GetTranslations [line 647]
Return the current array of language strings
Tags:
method HasMultiBytes [line 1344]
bool HasMultiBytes(
string
$str)
|
|
Checks if a string contains multibyte characters.
Tags:
Parameters:
method HeaderLine [line 1078]
string HeaderLine(
$name,
$value)
|
|
Returns a formatted header line.
Tags:
Parameters:
method InlineImageExists [line 1576]
bool InlineImageExists(
)
|
|
Returns true if an inline attachment is present.
Tags:
method IsError [line 1728]
Returns true if an error occurred.
Tags:
method IsHTML [line 278]
void IsHTML(
[bool
$ishtml = true])
|
|
Sets message type to HTML.
Tags:
Parameters:
method IsMail [line 290]
Sets Mailer to send message using PHP mail() function.
Tags:
method IsQmail [line 309]
Sets Mailer to send message using the qmail MTA.
Tags:
method IsSendmail [line 298]
Sets Mailer to send message using the $Sendmail program.
Tags:
method MailSend [line 563]
bool MailSend(
string
$header, string
$body)
|
|
Sends mail using the PHP mail() function.
Tags:
Parameters:
method MsgHTML [line 1758]
$message MsgHTML(
$message, [
$basedir = ''])
|
|
Evaluates the message and returns modifications for inline images and backgrounds
Tags:
Parameters:
method SecureHeader [line 1923]
string SecureHeader(
string
$str)
|
|
Strips newlines to prevent header injection.
Tags:
Parameters:
method Send [line 464]
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.
Tags:
method SendmailSend [line 517]
bool SendmailSend(
string
$header, string
$body)
|
|
Sends mail using the $Sendmail program.
Tags:
Parameters:
method set [line 1901]
void set(
string
$name, [mixed
$value = ''])
|
|
Set (or reset) Class Objects (variables)
Usage Example: $page->set('X-Priority', '3');
Tags:
Parameters:
method SetError [line 1668]
Adds the error message to the error container.
Tags:
Parameters:
method SetFrom [line 407]
boolean SetFrom(
string
$address, [string
$name = ''], [
$auto = 1])
|
|
Set the From and FromName properties
Tags:
Parameters:
method SetLanguage [line 618]
void SetLanguage(
[string
$langcode = 'en'], [string
$lang_path = 'language/'])
|
|
Sets the language for all class error messages.
Returns false if it cannot load the language file. The default language is English.
Tags:
Parameters:
method SetWordWrap [line 814]
Set the body wrapping.
Tags:
method Sign [line 1936]
void Sign(
$cert_filename, string
$key_filename, string
$key_pass)
|
|
Set the private key file and password to sign the message.
Tags:
Parameters:
method TextLine [line 1087]
Returns a formatted mail line.
Tags:
Parameters:
method UTF8CharBoundary [line 777]
int UTF8CharBoundary(
string
$encodedText, int
$maxLength)
|
|
Finds last character boundary prior to maxLength in a utf-8 quoted (printable) encoded string.
Original written by Colin Brown.
Tags:
Parameters:
method WrapText [line 695]
string WrapText(
string
$message, integer
$length, [boolean
$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: