Cheetah
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
PHPMailer Class Reference

Public Member Functions

 __construct ($exceptions=null)
 
 __destruct ()
 
 isHTML ($isHtml=true)
 
 isSMTP ()
 
 isMail ()
 
 isSendmail ()
 
 isQmail ()
 
 addAddress ($address, $name='')
 
 addCC ($address, $name='')
 
 addBCC ($address, $name='')
 
 addReplyTo ($address, $name='')
 
 parseAddresses ($addrstr, $useimap=true)
 
 setFrom ($address, $name='', $auto=true)
 
 getLastMessageID ()
 
 idnSupported ()
 
 punyencodeAddress ($address)
 
 send ()
 
 preSend ()
 
 postSend ()
 
 getSMTPInstance ()
 
 smtpConnect ($options=null)
 
 smtpClose ()
 
 setLanguage ($langcode='en', $lang_path='')
 
 getTranslations ()
 
 addrAppend ($type, $addr)
 
 addrFormat ($addr)
 
 wrapText ($message, $length, $qp_mode=false)
 
 utf8CharBoundary ($encodedText, $maxLength)
 
 setWordWrap ()
 
 createHeader ()
 
 getMailMIME ()
 
 getSentMIMEMessage ()
 
 createBody ()
 
 headerLine ($name, $value)
 
 textLine ($value)
 
 addAttachment ($path, $name='', $encoding='base64', $type='', $disposition='attachment')
 
 getAttachments ()
 
 encodeString ($str, $encoding='base64')
 
 encodeHeader ($str, $position='text')
 
 hasMultiBytes ($str)
 
 has8bitChars ($text)
 
 base64EncodeWrapMB ($str, $linebreak=null)
 
 encodeQP ($string, $line_max=76)
 
 encodeQPphp ( $string, $line_max=76, $space_conv=false)
 
 encodeQ ($str, $position='text')
 
 addStringAttachment ( $string, $filename, $encoding='base64', $type='', $disposition='attachment')
 
 addEmbeddedImage ($path, $cid, $name='', $encoding='base64', $type='', $disposition='inline')
 
 addStringEmbeddedImage ( $string, $cid, $name='', $encoding='base64', $type='', $disposition='inline')
 
 inlineImageExists ()
 
 attachmentExists ()
 
 alternativeExists ()
 
 clearQueuedAddresses ($kind)
 
 clearAddresses ()
 
 clearCCs ()
 
 clearBCCs ()
 
 clearReplyTos ()
 
 clearAllRecipients ()
 
 clearAttachments ()
 
 clearCustomHeaders ()
 
 isError ()
 
 fixEOL ($str)
 
 addCustomHeader ($name, $value=null)
 
 getCustomHeaders ()
 
 msgHTML ($message, $basedir='', $advanced=false)
 
 html2text ($html, $advanced=false)
 
 set ($name, $value='')
 
 secureHeader ($str)
 
 sign ($cert_filename, $key_filename, $key_pass, $extracerts_filename='')
 
 DKIM_QP ($txt)
 
 DKIM_Sign ($signHeader)
 
 DKIM_HeaderC ($signHeader)
 
 DKIM_BodyC ($body)
 
 DKIM_Add ($headers_line, $subject, $body)
 
 getToAddresses ()
 
 getCcAddresses ()
 
 getBccAddresses ()
 
 getReplyToAddresses ()
 
 getAllRecipientAddresses ()
 

Static Public Member Functions

static validateAddress ($address, $patternselect=null)
 
static rfcDate ()
 
static _mime_types ($ext='')
 
static filenameToType ($filename)
 
static mb_pathinfo ($path, $options=null)
 
static normalizeBreaks ($text, $breaktype="\r\n")
 
static hasLineLongerThanMax ($str)
 

Public Attributes

 $Version = '5.2.25'
 
 $Priority = null
 
 $CharSet = 'iso-8859-1'
 
 $ContentType = 'text/plain'
 
 $Encoding = '8bit'
 
 $ErrorInfo = ''
 
 $From = 'root@localhost'
 
 $FromName = 'Root User'
 
 $Sender = ''
 
 $ReturnPath = ''
 
 $Subject = ''
 
 $Body = ''
 
 $AltBody = ''
 
 $Ical = ''
 
 $WordWrap = 0
 
 $Mailer = 'mail'
 
 $Sendmail = '/usr/sbin/sendmail'
 
 $UseSendmailOptions = true
 
 $PluginDir = ''
 
 $ConfirmReadingTo = ''
 
 $Hostname = ''
 
 $MessageID = ''
 
 $MessageDate = ''
 
 $Host = 'localhost'
 
 $Port = 25
 
 $Helo = ''
 
 $SMTPSecure = ''
 
 $SMTPAutoTLS = true
 
 $SMTPAuth = false
 
 $SMTPOptions = array()
 
 $Username = ''
 
 $Password = ''
 
 $AuthType = ''
 
 $Realm = ''
 
 $Workstation = ''
 
 $Timeout = 300
 
 $SMTPDebug = 0
 
 $Debugoutput = 'echo'
 
 $SMTPKeepAlive = false
 
 $SingleTo = false
 
 $SingleToArray = array()
 
 $do_verp = false
 
 $AllowEmpty = false
 
 $LE = "\n"
 
 $DKIM_selector = ''
 
 $DKIM_identity = ''
 
 $DKIM_passphrase = ''
 
 $DKIM_domain = ''
 
 $DKIM_private = ''
 
 $DKIM_private_string = ''
 
 $action_function = ''
 
 $XMailer = ''
 
const STOP_MESSAGE = 0
 
const STOP_CONTINUE = 1
 
const STOP_CRITICAL = 2
 
const CRLF = "\r\n"
 
const MAX_LINE_LENGTH = 998
 

Static Public Attributes

static $validator = 'auto'
 

Protected Member Functions

 edebug ($str)
 
 addOrEnqueueAnAddress ($kind, $address, $name)
 
 addAnAddress ($kind, $address, $name='')
 
 sendmailSend ($header, $body)
 
 mailSend ($header, $body)
 
 smtpSend ($header, $body)
 
 generateId ()
 
 getBoundary ($boundary, $charSet, $contentType, $encoding)
 
 endBoundary ($boundary)
 
 setMessageType ()
 
 attachAll ($disposition_type, $boundary)
 
 encodeFile ($path, $encoding='base64')
 
 setError ($msg)
 
 serverHostname ()
 
 lang ($key)
 
 doCallback ($isSent, $to, $cc, $bcc, $subject, $body, $from)
 

Static Protected Member Functions

static isShellSafe ($string)
 

Protected Attributes

 $MIMEBody = ''
 
 $MIMEHeader = ''
 
 $mailHeader = ''
 
 $smtp = null
 
 $to = array()
 
 $cc = array()
 
 $bcc = array()
 
 $ReplyTo = array()
 
 $all_recipients = array()
 
 $RecipientsQueue = array()
 
 $ReplyToQueue = array()
 
 $attachment = array()
 
 $CustomHeader = array()
 
 $lastMessageID = ''
 
 $message_type = ''
 
 $boundary = array()
 
 $language = array()
 
 $error_count = 0
 
 $sign_cert_file = ''
 
 $sign_key_file = ''
 
 $sign_extracerts_file = ''
 
 $sign_key_pass = ''
 
 $exceptions = false
 
 $uniqueid = ''
 

Detailed Description

Definition at line 28 of file class.phpmailer.php.

Constructor & Destructor Documentation

◆ __construct()

PHPMailer::__construct (   $exceptions = null)

Constructor.

Parameters
boolean$exceptionsShould we throw external exceptions?

Definition at line 657 of file class.phpmailer.php.

◆ __destruct()

PHPMailer::__destruct ( )

Destructor.

Definition at line 667 of file class.phpmailer.php.

Member Function Documentation

◆ _mime_types()

static PHPMailer::_mime_types (   $ext = '')
static

Get the MIME type for a file extension.

Parameters
string$extFile extension @access public
Returns
string MIME type of file.

Definition at line 3513 of file class.phpmailer.php.

◆ addAddress()

PHPMailer::addAddress (   $address,
  $name = '' 
)

Add a "To" address.

Parameters
string$addressThe email address to send to
string$name
Returns
boolean true on success, false if address already used or invalid in some way

Definition at line 817 of file class.phpmailer.php.

◆ addAnAddress()

PHPMailer::addAnAddress (   $kind,
  $address,
  $name = '' 
)
protected

Add an address to one of the recipient arrays or to the ReplyTo array. Addresses that have been added already return false, but do not throw exceptions.

Parameters
string$kindOne of 'to', 'cc', 'bcc', or 'ReplyTo'
string$addressThe email address to send, resp. to reply to
string$name
Exceptions
phpmailerException
Returns
boolean true on success, false if address already used or invalid in some way @access protected

Definition at line 913 of file class.phpmailer.php.

◆ addAttachment()

PHPMailer::addAttachment (   $path,
  $name = '',
  $encoding = 'base64',
  $type = '',
  $disposition = 'attachment' 
)

Add an attachment from a path on the filesystem. Never use a user-supplied path to a file! Returns false if the file could not be found or read.

Parameters
string$pathPath to the attachment.
string$nameOverrides the attachment name.
string$encodingFile encoding (see $Encoding).
string$typeFile extension (MIME) type.
string$dispositionDisposition to use
Exceptions
phpmailerException
Returns
boolean

Definition at line 2508 of file class.phpmailer.php.

◆ addBCC()

PHPMailer::addBCC (   $address,
  $name = '' 
)

Add a "BCC" address.

Note
: This function works with the SMTP mailer on win32, not with the "mail" mailer.
Parameters
string$addressThe email address to send to
string$name
Returns
boolean true on success, false if address already used or invalid in some way

Definition at line 841 of file class.phpmailer.php.

◆ addCC()

PHPMailer::addCC (   $address,
  $name = '' 
)

Add a "CC" address.

Note
: This function works with the SMTP mailer on win32, not with the "mail" mailer.
Parameters
string$addressThe email address to send to
string$name
Returns
boolean true on success, false if address already used or invalid in some way

Definition at line 829 of file class.phpmailer.php.

◆ addCustomHeader()

PHPMailer::addCustomHeader (   $name,
  $value = null 
)

Add a custom header. $name value can be overloaded to contain both header name and value (name:value) @access public

Parameters
string$nameCustom header name
string$valueHeader value
Returns
void

Definition at line 3365 of file class.phpmailer.php.

◆ addEmbeddedImage()

PHPMailer::addEmbeddedImage (   $path,
  $cid,
  $name = '',
  $encoding = 'base64',
  $type = '',
  $disposition = 'inline' 
)

Add an embedded (inline) attachment from a file. This can include images, sounds, and just about any other document type. These differ from 'regular' attachments in that they are intended to be displayed inline with the message, not just attached for download. This is used in HTML messages that embed the images the HTML refers to using the $cid value. Never use a user-supplied path to a file!

Parameters
string$pathPath to the attachment.
string$cidContent ID of the attachment; Use this to reference the content when using an embedded image in HTML.
string$nameOverrides the attachment name.
string$encodingFile encoding (see $Encoding).
string$typeFile MIME type.
string$dispositionDisposition to use
Returns
boolean True on successfully adding an attachment

Definition at line 3034 of file class.phpmailer.php.

◆ addOrEnqueueAnAddress()

PHPMailer::addOrEnqueueAnAddress (   $kind,
  $address,
  $name 
)
protected

Add an address to one of the recipient arrays or to the ReplyTo array. Because PHPMailer can't validate addresses with an IDN without knowing the PHPMailer::$CharSet (that can still be modified after calling this function), addition of such addresses is delayed until send(). Addresses that have been added already return false, but do not throw exceptions.

Parameters
string$kindOne of 'to', 'cc', 'bcc', or 'ReplyTo'
string$addressThe email address to send, resp. to reply to
string$name
Exceptions
phpmailerException
Returns
boolean true on success, false if address already used or invalid in some way @access protected

Definition at line 869 of file class.phpmailer.php.

◆ addrAppend()

PHPMailer::addrAppend (   $type,
  $addr 
)

Create recipient headers. @access public

Parameters
string$type
array$addrAn array of recipient, where each recipient is a 2-element indexed array with element 0 containing an address and element 1 containing a name, like: array(array('joe@e.nosp@m.xamp.nosp@m.le.co.nosp@m.m', 'Joe User'), array('zoe@e.nosp@m.xamp.nosp@m.le.co.nosp@m.m', 'Zoe User'))
Returns
string

Definition at line 1823 of file class.phpmailer.php.

◆ addReplyTo()

PHPMailer::addReplyTo (   $address,
  $name = '' 
)

Add a "Reply-To" address.

Parameters
string$addressThe email address to reply to
string$name
Returns
boolean true on success, false if address already used or invalid in some way

Definition at line 852 of file class.phpmailer.php.

◆ addrFormat()

PHPMailer::addrFormat (   $addr)

Format an address for use in a message header. @access public

Parameters
array$addrA 2-element indexed array, element 0 containing an address, element 1 containing a name like array('joe@e.nosp@m.xamp.nosp@m.le.co.nosp@m.m', 'Joe User')
Returns
string

Definition at line 1839 of file class.phpmailer.php.

◆ addStringAttachment()

PHPMailer::addStringAttachment (   $string,
  $filename,
  $encoding = 'base64',
  $type = '',
  $disposition = 'attachment' 
)

Add a string or binary attachment (non-filesystem). This method can be used to attach ascii or binary data, such as a BLOB record from a database.

Parameters
string$stringString attachment data.
string$filenameName of the attachment.
string$encodingFile encoding (see $Encoding).
string$typeFile extension (MIME) type.
string$dispositionDisposition to use
Returns
void

Definition at line 2993 of file class.phpmailer.php.

◆ addStringEmbeddedImage()

PHPMailer::addStringEmbeddedImage (   $string,
  $cid,
  $name = '',
  $encoding = 'base64',
  $type = '',
  $disposition = 'inline' 
)

Add an embedded stringified attachment. This can include images, sounds, and just about any other document type. Be sure to set the $type to an image type for images: JPEG images use 'image/jpeg', GIF uses 'image/gif', PNG uses 'image/png'.

Parameters
string$stringThe attachment binary data.
string$cidContent ID of the attachment; Use this to reference the content when using an embedded image in HTML.
string$name
string$encodingFile encoding (see $Encoding).
string$typeMIME type.
string$dispositionDisposition to use
Returns
boolean True on successfully adding an attachment

Definition at line 3079 of file class.phpmailer.php.

◆ alternativeExists()

PHPMailer::alternativeExists ( )

Check if this message has an alternative body set.

Returns
boolean

Definition at line 3139 of file class.phpmailer.php.

◆ attachAll()

PHPMailer::attachAll (   $disposition_type,
  $boundary 
)
protected

Attach all file, string, and binary attachments to the message. Returns an empty string on failure. @access protected

Parameters
string$disposition_type
string$boundary
Returns
string

Definition at line 2564 of file class.phpmailer.php.

◆ attachmentExists()

PHPMailer::attachmentExists ( )

Check if an attachment (non-inline) is present.

Returns
boolean

Definition at line 3125 of file class.phpmailer.php.

◆ base64EncodeWrapMB()

PHPMailer::base64EncodeWrapMB (   $str,
  $linebreak = null 
)

Encode and wrap long multibyte strings for mail headers without breaking lines within a character. Adapted from a function by paravoid public string $str multi-byte text to wrap encode string $linebreak string to use as linefeed/end-of-line string

Definition at line 2859 of file class.phpmailer.php.

◆ clearAddresses()

PHPMailer::clearAddresses ( )

Clear all To recipients.

Returns
void

Definition at line 3164 of file class.phpmailer.php.

◆ clearAllRecipients()

PHPMailer::clearAllRecipients ( )

Clear all recipient types.

Returns
void

Definition at line 3213 of file class.phpmailer.php.

◆ clearAttachments()

PHPMailer::clearAttachments ( )

Clear all filesystem, string, and binary attachments.

Returns
void

Definition at line 3226 of file class.phpmailer.php.

◆ clearBCCs()

PHPMailer::clearBCCs ( )

Clear all BCC recipients.

Returns
void

Definition at line 3190 of file class.phpmailer.php.

◆ clearCCs()

PHPMailer::clearCCs ( )

Clear all CC recipients.

Returns
void

Definition at line 3177 of file class.phpmailer.php.

◆ clearCustomHeaders()

PHPMailer::clearCustomHeaders ( )

Clear all custom headers.

Returns
void

Definition at line 3235 of file class.phpmailer.php.

◆ clearQueuedAddresses()

PHPMailer::clearQueuedAddresses (   $kind)

Clear queued addresses of given kind. @access protected

Parameters
string$kind'to', 'cc', or 'bcc'
Returns
void

Definition at line 3150 of file class.phpmailer.php.

◆ clearReplyTos()

PHPMailer::clearReplyTos ( )

Clear all ReplyTo recipients.

Returns
void

Definition at line 3203 of file class.phpmailer.php.

◆ createBody()

PHPMailer::createBody ( )

Assemble the message body. Returns an empty string on failure. @access public

Exceptions
phpmailerException
Returns
string The assembled message body

Definition at line 2199 of file class.phpmailer.php.

◆ createHeader()

PHPMailer::createHeader ( )

Assemble message headers. @access public

Returns
string The assembled headers

Definition at line 2029 of file class.phpmailer.php.

◆ DKIM_Add()

PHPMailer::DKIM_Add (   $headers_line,
  $subject,
  $body 
)

Create the DKIM header and body in a new message header. @access public

Parameters
string$headers_lineHeader lines
string$subjectSubject
string$bodyBody
Returns
string

Definition at line 3869 of file class.phpmailer.php.

◆ DKIM_BodyC()

PHPMailer::DKIM_BodyC (   $body)

Generate a DKIM canonicalization body. @access public

Parameters
string$bodyMessage Body
Returns
string

Definition at line 3846 of file class.phpmailer.php.

◆ DKIM_HeaderC()

PHPMailer::DKIM_HeaderC (   $signHeader)

Generate a DKIM canonicalization header. @access public

Parameters
string$signHeaderHeader
Returns
string

Definition at line 3826 of file class.phpmailer.php.

◆ DKIM_QP()

PHPMailer::DKIM_QP (   $txt)

Quoted-Printable-encode a DKIM header. @access public

Parameters
string$txt
Returns
string

Definition at line 3759 of file class.phpmailer.php.

◆ DKIM_Sign()

PHPMailer::DKIM_Sign (   $signHeader)

Generate a DKIM signature. @access public

Parameters
string$signHeader
Exceptions
phpmailerException
Returns
string The DKIM signature value

Definition at line 3780 of file class.phpmailer.php.

◆ doCallback()

PHPMailer::doCallback (   $isSent,
  $to,
  $cc,
  $bcc,
  $subject,
  $body,
  $from 
)
protected

Perform a callback.

Parameters
boolean$isSent
array$to
array$cc
array$bcc
string$subject
string$body
string$from

Definition at line 4018 of file class.phpmailer.php.

◆ edebug()

PHPMailer::edebug (   $str)
protected

Output debugging info via user-defined method. Only generates output if SMTP debug output is enabled (

See also
SMTP::$do_debug).
PHPMailer::$Debugoutput
PHPMailer::$SMTPDebug
Parameters
string$str

Definition at line 711 of file class.phpmailer.php.

◆ encodeFile()

PHPMailer::encodeFile (   $path,
  $encoding = 'base64' 
)
protected

Encode a file attachment in requested format. Returns an empty string on failure.

Parameters
string$pathThe full path to the file
string$encodingThe encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable'
Exceptions
phpmailerException@access protected
Returns
string

Definition at line 2689 of file class.phpmailer.php.

◆ encodeHeader()

PHPMailer::encodeHeader (   $str,
  $position = 'text' 
)

Encode a header string optimally. Picks shortest of Q, B, quoted-printable or none. @access public

Parameters
string$str
string$position
Returns
string

@noinspection PhpMissingBreakStatementInspection

Definition at line 2766 of file class.phpmailer.php.

◆ encodeQ()

PHPMailer::encodeQ (   $str,
  $position = 'text' 
)

Encode a string using Q encoding. string $str the text to encode string $position Where the text is going to be used, see the RFC for what that means public string

@noinspection PhpMissingBreakStatementInspection

Definition at line 2942 of file class.phpmailer.php.

◆ encodeQP()

PHPMailer::encodeQP (   $string,
  $line_max = 76 
)

Encode a string in quoted-printable format. According to RFC2045 section 6.7. @access public

Parameters
string$stringThe text to encode
integer$line_maxNumber of chars allowed on a line before wrapping
Returns
string Adapted from this comment

Definition at line 2901 of file class.phpmailer.php.

◆ encodeQPphp()

PHPMailer::encodeQPphp (   $string,
  $line_max = 76,
  $space_conv = false 
)

Backward compatibility wrapper for an old QP encoding function that was removed.

See also
PHPMailer::encodeQP() @access public
Parameters
string$string
integer$line_max
boolean$space_conv
Returns
string
Parameters
$space_conv@noinspection PhpUnusedParameterInspection

Definition at line 2926 of file class.phpmailer.php.

◆ encodeString()

PHPMailer::encodeString (   $str,
  $encoding = 'base64' 
)

Encode a string in requested format. Returns an empty string on failure.

Parameters
string$strThe text to encode
string$encodingThe encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable' @access public
Returns
string

Definition at line 2730 of file class.phpmailer.php.

◆ endBoundary()

PHPMailer::endBoundary (   $boundary)
protected

Return the end of a message boundary. @access protected

Parameters
string$boundary
Returns
string

Definition at line 2443 of file class.phpmailer.php.

◆ filenameToType()

static PHPMailer::filenameToType (   $filename)
static

Map a file name to a MIME type. Defaults to 'application/octet-stream', i.e.. arbitrary binary data.

Parameters
string$filenameA file name or full path, does not need to exist as a file
Returns
string

Definition at line 3628 of file class.phpmailer.php.

◆ fixEOL()

PHPMailer::fixEOL (   $str)

Ensure consistent line endings in a string. Changes every end of line from CRLF, CR or LF to $this->LE. @access public

Parameters
string$strString to fixEOL
Returns
string

Definition at line 3345 of file class.phpmailer.php.

◆ generateId()

PHPMailer::generateId ( )
protected

Create unique ID

Returns
string

Definition at line 2188 of file class.phpmailer.php.

◆ getAllRecipientAddresses()

PHPMailer::getAllRecipientAddresses ( )

Allows for public read access to 'all_recipients' property.

Note
: Before the send() call, queued addresses (i.e. with IDN) are not yet included. @access public
Returns
array

Definition at line 4003 of file class.phpmailer.php.

◆ getAttachments()

PHPMailer::getAttachments ( )

Return the array of attachments.

Returns
array

Definition at line 2551 of file class.phpmailer.php.

◆ getBccAddresses()

PHPMailer::getBccAddresses ( )

Allows for public read access to 'bcc' property.

Note
: Before the send() call, queued addresses (i.e. with IDN) are not yet included. @access public
Returns
array

Definition at line 3981 of file class.phpmailer.php.

◆ getBoundary()

PHPMailer::getBoundary (   $boundary,
  $charSet,
  $contentType,
  $encoding 
)
protected

Return the start of a message boundary. @access protected

Parameters
string$boundary
string$charSet
string$contentType
string$encoding
Returns
string

Definition at line 2413 of file class.phpmailer.php.

◆ getCcAddresses()

PHPMailer::getCcAddresses ( )

Allows for public read access to 'cc' property.

Note
: Before the send() call, queued addresses (i.e. with IDN) are not yet included. @access public
Returns
array

Definition at line 3970 of file class.phpmailer.php.

◆ getCustomHeaders()

PHPMailer::getCustomHeaders ( )

Returns all custom headers.

Returns
array

Definition at line 3379 of file class.phpmailer.php.

◆ getLastMessageID()

PHPMailer::getLastMessageID ( )

Return the Message-ID header of the last email. Technically this is the value from the last time the headers were created, but it's also the message ID of the last sent message except in pathological cases.

Returns
string

Definition at line 1044 of file class.phpmailer.php.

◆ getMailMIME()

PHPMailer::getMailMIME ( )

Get the message MIME type headers. @access public

Returns
string

Definition at line 2124 of file class.phpmailer.php.

◆ getReplyToAddresses()

PHPMailer::getReplyToAddresses ( )

Allows for public read access to 'ReplyTo' property.

Note
: Before the send() call, queued addresses (i.e. with IDN) are not yet included. @access public
Returns
array

Definition at line 3992 of file class.phpmailer.php.

◆ getSentMIMEMessage()

PHPMailer::getSentMIMEMessage ( )

Returns the whole MIME message. Includes complete headers and body. Only valid post preSend().

See also
PHPMailer::preSend() @access public
Returns
string

Definition at line 2179 of file class.phpmailer.php.

◆ getSMTPInstance()

PHPMailer::getSMTPInstance ( )

Get an instance to use for SMTP operations. Override this function to load your own SMTP implementation

Returns
SMTP

Definition at line 1517 of file class.phpmailer.php.

◆ getToAddresses()

PHPMailer::getToAddresses ( )

Allows for public read access to 'to' property.

Note
: Before the send() call, queued addresses (i.e. with IDN) are not yet included. @access public
Returns
array

Definition at line 3959 of file class.phpmailer.php.

◆ getTranslations()

PHPMailer::getTranslations ( )

Get the array of strings for the current language.

Returns
array

Definition at line 1808 of file class.phpmailer.php.

◆ has8bitChars()

PHPMailer::has8bitChars (   $text)

Does a string contain any 8-bit chars (in any charset)?

Parameters
string$text
Returns
boolean

Definition at line 2844 of file class.phpmailer.php.

◆ hasLineLongerThanMax()

static PHPMailer::hasLineLongerThanMax (   $str)
static

Detect if a string contains a line longer than the maximum line length allowed.

Parameters
string$str
Returns
boolean

Definition at line 3947 of file class.phpmailer.php.

◆ hasMultiBytes()

PHPMailer::hasMultiBytes (   $str)

Check if a string contains multi-byte characters. @access public

Parameters
string$strmulti-byte text to wrap encode
Returns
boolean

Definition at line 2830 of file class.phpmailer.php.

◆ headerLine()

PHPMailer::headerLine (   $name,
  $value 
)

Format a header line. @access public

Parameters
string$name
string$value
Returns
string

Definition at line 2480 of file class.phpmailer.php.

◆ html2text()

PHPMailer::html2text (   $html,
  $advanced = false 
)

Convert an HTML string into plain text. This is used by msgHTML(). Note - older versions of this function used a bundled advanced converter which was been removed for license reasons in #232. Example usage: // Use default conversion $plain = $mail->html2text($html); // Use your own custom converter $plain = $mail->html2text($html, function($html) { $converter = new MyHtml2text($html); return $converter->get_text(); });

Parameters
string$htmlThe HTML text to convert
boolean | callable$advancedAny boolean value to use the internal converter, or provide your own callable for custom conversion.
Returns
string

Definition at line 3494 of file class.phpmailer.php.

◆ idnSupported()

PHPMailer::idnSupported ( )

Tells whether IDNs (Internationalized Domain Names) are supported or not. This requires the "intl" and "mbstring" PHP extensions.

Returns
bool "true" if required functions for IDN support are present

Definition at line 1164 of file class.phpmailer.php.

◆ inlineImageExists()

PHPMailer::inlineImageExists ( )

Check if an inline attachment is present. @access public

Returns
boolean

Definition at line 3111 of file class.phpmailer.php.

◆ isError()

PHPMailer::isError ( )

Check if an error occurred. @access public

Returns
boolean True if an error did occur.

Definition at line 3333 of file class.phpmailer.php.

◆ isHTML()

PHPMailer::isHTML (   $isHtml = true)

Sets message type to HTML or plain.

Parameters
boolean$isHtmlTrue for HTML mode.
Returns
void

Definition at line 752 of file class.phpmailer.php.

◆ isMail()

PHPMailer::isMail ( )

Send messages using PHP's mail() function.

Returns
void

Definition at line 774 of file class.phpmailer.php.

◆ isQmail()

PHPMailer::isQmail ( )

Send messages using qmail.

Returns
void

Definition at line 799 of file class.phpmailer.php.

◆ isSendmail()

PHPMailer::isSendmail ( )

Send messages using $Sendmail.

Returns
void

Definition at line 783 of file class.phpmailer.php.

◆ isShellSafe()

static PHPMailer::isShellSafe (   $string)
staticprotected

Fix CVE-2016-10033 and CVE-2016-10045 by disallowing potentially unsafe shell characters.

Note that escapeshellarg and escapeshellcmd are inadequate for our purposes, especially on Windows.

Parameters
string$stringThe string to be validated
See also
https://github.com/PHPMailer/PHPMailer/issues/924 CVE-2016-10045 bug report @access protected
Returns
boolean

Definition at line 1439 of file class.phpmailer.php.

◆ isSMTP()

PHPMailer::isSMTP ( )

Send messages using SMTP.

Returns
void

Definition at line 765 of file class.phpmailer.php.

◆ lang()

PHPMailer::lang (   $key)
protected

Get an error message in the current language. @access protected

Parameters
string$key
Returns
string

Definition at line 3308 of file class.phpmailer.php.

◆ mailSend()

PHPMailer::mailSend (   $header,
  $body 
)
protected

Send mail using the PHP mail() function.

Parameters
string$headerThe message headers
string$bodyThe message body phpmailerException protected boolean

Definition at line 1473 of file class.phpmailer.php.

◆ mb_pathinfo()

static PHPMailer::mb_pathinfo (   $path,
  $options = null 
)
static

Multi-byte-safe pathinfo replacement. Drop-in replacement for pathinfo(), but multibyte-safe, cross-platform-safe, old-version-safe. Works similarly to the one in PHP >= 5.2.0 string $path A filename or path, does not need to exist as a file integer|string $options Either a PATHINFO_* constant, or a string name to return only the specified piece, allows 'filename' to work on PHP < 5.2 string|array

Definition at line 3650 of file class.phpmailer.php.

◆ msgHTML()

PHPMailer::msgHTML (   $message,
  $basedir = '',
  $advanced = false 
)

Create a message body from an HTML string. Automatically inlines images and creates a plain-text version by converting the HTML, overwriting any existing values in Body and AltBody. Do not source $message content from user input! $basedir is prepended when handling relative URLs, e.g. and must not be empty will look for an image file in $basedir/images/a.png and convert it to inline. If you don't provide a $basedir, relative paths will be left untouched (and thus probably break in email) If you don't want to apply these transformations to your HTML, just set Body and AltBody directly. @access public

Parameters
string$messageHTML message string
string$basedirAbsolute path to a base directory to prepend to relative paths to images
boolean | callable$advancedWhether to use the internal HTML to text converter or your own custom converter
See also
PHPMailer::html2text()
Returns
string $message The transformed message Body

Definition at line 3400 of file class.phpmailer.php.

◆ normalizeBreaks()

static PHPMailer::normalizeBreaks (   $text,
  $breaktype = "\r\n" 
)
static

Normalize line breaks in a string. Converts UNIX LF, Mac CR and Windows CRLF line breaks into a single line break format. Defaults to CRLF (for message bodies) and preserves consecutive breaks.

Parameters
string$text
string$breaktypeWhat kind of line break to use, defaults to CRLF
Returns
string @access public

Definition at line 3732 of file class.phpmailer.php.

◆ parseAddresses()

PHPMailer::parseAddresses (   $addrstr,
  $useimap = true 
)

Parse and validate a string containing one or more RFC822-style comma-separated email addresses of the form "display name <address>" into an array of name/address pairs. Uses the imap_rfc822_parse_adrlist function if the IMAP extension is available. Note that quotes in the name part are removed.

Parameters
string$addrstrThe address list string
bool$useimapWhether to use the IMAP extension to parse the list
Returns
array A more careful implementation

Definition at line 958 of file class.phpmailer.php.

◆ postSend()

PHPMailer::postSend ( )

Actually send a message. Send the email via the selected mechanism

Exceptions
phpmailerException
Returns
boolean

Definition at line 1326 of file class.phpmailer.php.

◆ preSend()

PHPMailer::preSend ( )

Prepare a message for sending.

Exceptions
phpmailerException
Returns
boolean

Definition at line 1229 of file class.phpmailer.php.

◆ punyencodeAddress()

PHPMailer::punyencodeAddress (   $address)

Converts IDN in given email address to its ASCII form, also known as punycode, if possible. Important: Address must be passed in same encoding as currently set in PHPMailer::$CharSet. This function silently returns unmodified address if:

  • No conversion is necessary (i.e. domain name is not an IDN, or is already in ASCII form)
  • Conversion to punycode is impossible (e.g. required PHP functions are not available) or fails for any reason (e.g. domain has characters not allowed in an IDN)
    See also
    PHPMailer::$CharSet
    Parameters
    string$addressThe email address to convert
    Returns
    string The encoded address in ASCII form

Definition at line 1181 of file class.phpmailer.php.

◆ rfcDate()

static PHPMailer::rfcDate ( )
static

Return an RFC 822 formatted date. @access public

Returns
string

Definition at line 3273 of file class.phpmailer.php.

◆ secureHeader()

PHPMailer::secureHeader (   $str)

Strip newlines to prevent header injection. @access public

Parameters
string$str
Returns
string

Definition at line 3717 of file class.phpmailer.php.

◆ send()

PHPMailer::send ( )

Create a message and send it. Uses the sending method specified by $Mailer.

Exceptions
phpmailerException
Returns
boolean false on error - See the ErrorInfo property for details of the error.

Definition at line 1207 of file class.phpmailer.php.

◆ sendmailSend()

PHPMailer::sendmailSend (   $header,
  $body 
)
protected

Send mail using the $Sendmail program.

Parameters
string$headerThe message headers
string$bodyThe message body
See also
PHPMailer::$Sendmail
Exceptions
phpmailerException@access protected
Returns
boolean

Definition at line 1365 of file class.phpmailer.php.

◆ serverHostname()

PHPMailer::serverHostname ( )
protected

Get the server hostname. Returns 'localhost.localdomain' if unknown. @access protected

Returns
string

Definition at line 3287 of file class.phpmailer.php.

◆ set()

PHPMailer::set (   $name,
  $value = '' 
)

Set or reset instance properties. You should avoid this function - it's more verbose, less efficient, more error-prone and harder to debug than setting properties directly. Usage Example: ‘$mail->set('SMTPSecure’, 'tls');` is the same as: ‘$mail->SMTPSecure = 'tls’;` @access public

Parameters
string$nameThe property name to set
mixed$valueThe value to set the property to
Returns
boolean @TODO Should this not be using the __set() magic function?

Definition at line 3700 of file class.phpmailer.php.

◆ setError()

PHPMailer::setError (   $msg)
protected

Add an error message to the error container. @access protected

Parameters
string$msg
Returns
void

Definition at line 3246 of file class.phpmailer.php.

◆ setFrom()

PHPMailer::setFrom (   $address,
  $name = '',
  $auto = true 
)

Set the From and FromName properties.

Parameters
string$address
string$name
boolean$autoWhether to also set the Sender address, defaults to true
Exceptions
phpmailerException
Returns
boolean

Definition at line 1011 of file class.phpmailer.php.

◆ setLanguage()

PHPMailer::setLanguage (   $langcode = 'en',
  $lang_path = '' 
)

Set the language for error messages. Returns false if it cannot load the language file. The default language is English.

Parameters
string$langcodeISO 639-1 2-character language code (e.g. French is "fr")
string$lang_pathPath to the language file directory, with trailing separator (slash)
Returns
boolean @access public

Definition at line 1741 of file class.phpmailer.php.

◆ setMessageType()

PHPMailer::setMessageType ( )
protected

Set the message type. PHPMailer only supports some preset message types, not arbitrary MIME structures. @access protected

Returns
void

Definition at line 2454 of file class.phpmailer.php.

◆ setWordWrap()

PHPMailer::setWordWrap ( )

Apply word wrapping to the message body. Wraps the message body to the number of chars set in the WordWrap property. You should only do this to plain-text bodies as wrapping HTML tags may break them. This is called automatically by createBody(), so you don't need to call it yourself. @access public

Returns
void

Definition at line 2005 of file class.phpmailer.php.

◆ sign()

PHPMailer::sign (   $cert_filename,
  $key_filename,
  $key_pass,
  $extracerts_filename = '' 
)

Set the public and private key files and password for S/MIME signing. @access public

Parameters
string$cert_filename
string$key_filename
string$key_passPassword for private key
string$extracerts_filenameOptional path to chain certificate

Definition at line 3745 of file class.phpmailer.php.

◆ smtpClose()

PHPMailer::smtpClose ( )

Close the active SMTP session if one exists.

Returns
void

Definition at line 1722 of file class.phpmailer.php.

◆ smtpConnect()

PHPMailer::smtpConnect (   $options = null)

Initiate a connection to an SMTP server. Returns false if the operation failed.

Parameters
array$optionsAn array of options compatible with stream_context_create() @uses SMTP @access public
Exceptions
phpmailerException
Returns
boolean

Definition at line 1600 of file class.phpmailer.php.

◆ smtpSend()

PHPMailer::smtpSend (   $header,
  $body 
)
protected

Send mail via SMTP. Returns false if there is a bad MAIL FROM, RCPT, or DATA input. Uses the PHPMailerSMTP class by default.

See also
PHPMailer::getSMTPInstance() to use a different class.
Parameters
string$headerThe message headers
string$bodyThe message body
Exceptions
phpmailerException@uses SMTP @access protected
Returns
boolean

Definition at line 1537 of file class.phpmailer.php.

◆ textLine()

PHPMailer::textLine (   $value)

Return a formatted mail line. @access public

Parameters
string$value
Returns
string

Definition at line 2491 of file class.phpmailer.php.

◆ utf8CharBoundary()

PHPMailer::utf8CharBoundary (   $encodedText,
  $maxLength 
)

Find the last character boundary prior to $maxLength in a utf-8 quoted-printable encoded string. Original written by Colin Brown. @access public

Parameters
string$encodedTextutf-8 QP text
integer$maxLengthFind the last character boundary prior to this length
Returns
integer

Definition at line 1960 of file class.phpmailer.php.

◆ validateAddress()

static PHPMailer::validateAddress (   $address,
  $patternselect = null 
)
static

Check that a string looks like an email address.

Parameters
string$addressThe email address to check
string | callable$patternselectA selector for the validation pattern to use :
  • auto Pick best pattern automatically;
  • pcre8 Use the squiloople.com pattern, requires PCRE > 8.0, PHP >= 5.3.2, 5.2.14;
  • pcre Use old PCRE implementation;
  • php Use PHP built-in FILTER_VALIDATE_EMAIL;
  • html5 Use the pattern given by the HTML5 spec for 'email' type form input elements.
  • noregex Don't use a regex: super fast, really dumb. Alternatively you may pass in a callable to inject your own validator, for example: PHPMailer::validateAddress('user@.nosp@m.exam.nosp@m.ple.c.nosp@m.om', function($address) { return (strpos($address, '@') !== false); }); You can also set the PHPMailer::$validator static to a callable, allowing built-in methods to use your validator.
Returns
boolean

@access public

Uses the same RFC5322 regex on which FILTER_VALIDATE_EMAIL is based, but allows dotless domains. 2009-2010 Michael Rushton Feel free to use and redistribute this code. But please keep this copyright notice. This is the pattern used in the HTML5 spec for validation of 'email' type form input elements. http://www.whatwg.org/specs/web-apps/current-work/#e-mail-state-(type=email)

Definition at line 1068 of file class.phpmailer.php.

◆ wrapText()

PHPMailer::wrapText (   $message,
  $length,
  $qp_mode = false 
)

Word-wrap message. For use with mailers that do not automatically perform wrapping and for quoted-printable encoded messages. Original written by philippe.

Parameters
string$messageThe message to wrap
integer$lengthThe line length to wrap to
boolean$qp_modeWhether to run in Quoted-Printable mode @access public
Returns
string

Definition at line 1861 of file class.phpmailer.php.

Member Data Documentation

◆ $action_function

PHPMailer::$action_function = ''

Definition at line 451 of file class.phpmailer.php.

◆ $all_recipients

PHPMailer::$all_recipients = array()
protected

Definition at line 511 of file class.phpmailer.php.

◆ $AllowEmpty

PHPMailer::$AllowEmpty = false

Definition at line 383 of file class.phpmailer.php.

◆ $AltBody

PHPMailer::$AltBody = ''

Definition at line 118 of file class.phpmailer.php.

◆ $attachment

PHPMailer::$attachment = array()
protected

Definition at line 540 of file class.phpmailer.php.

◆ $AuthType

PHPMailer::$AuthType = ''

Definition at line 294 of file class.phpmailer.php.

◆ $bcc

PHPMailer::$bcc = array()
protected

Definition at line 495 of file class.phpmailer.php.

◆ $Body

PHPMailer::$Body = ''

Definition at line 109 of file class.phpmailer.php.

◆ $boundary

PHPMailer::$boundary = array()
protected

Definition at line 568 of file class.phpmailer.php.

◆ $cc

PHPMailer::$cc = array()
protected

Definition at line 488 of file class.phpmailer.php.

◆ $CharSet

PHPMailer::$CharSet = 'iso-8859-1'

Definition at line 48 of file class.phpmailer.php.

◆ $ConfirmReadingTo

PHPMailer::$ConfirmReadingTo = ''

Definition at line 190 of file class.phpmailer.php.

◆ $ContentType

PHPMailer::$ContentType = 'text/plain'

Definition at line 54 of file class.phpmailer.php.

◆ $CustomHeader

PHPMailer::$CustomHeader = array()
protected

Definition at line 547 of file class.phpmailer.php.

◆ $Debugoutput

PHPMailer::$Debugoutput = 'echo'

Definition at line 345 of file class.phpmailer.php.

◆ $DKIM_domain

PHPMailer::$DKIM_domain = ''

Definition at line 418 of file class.phpmailer.php.

◆ $DKIM_identity

PHPMailer::$DKIM_identity = ''

Definition at line 404 of file class.phpmailer.php.

◆ $DKIM_passphrase

PHPMailer::$DKIM_passphrase = ''

Definition at line 411 of file class.phpmailer.php.

◆ $DKIM_private

PHPMailer::$DKIM_private = ''

Definition at line 424 of file class.phpmailer.php.

◆ $DKIM_private_string

PHPMailer::$DKIM_private_string = ''

Definition at line 431 of file class.phpmailer.php.

◆ $DKIM_selector

PHPMailer::$DKIM_selector = ''

Definition at line 397 of file class.phpmailer.php.

◆ $do_verp

PHPMailer::$do_verp = false

Definition at line 377 of file class.phpmailer.php.

◆ $Encoding

PHPMailer::$Encoding = '8bit'

Definition at line 61 of file class.phpmailer.php.

◆ $error_count

PHPMailer::$error_count = 0
protected

Definition at line 582 of file class.phpmailer.php.

◆ $ErrorInfo

PHPMailer::$ErrorInfo = ''

Definition at line 67 of file class.phpmailer.php.

◆ $exceptions

PHPMailer::$exceptions = false
protected

Definition at line 618 of file class.phpmailer.php.

◆ $From

PHPMailer::$From = 'root@localhost'

Definition at line 73 of file class.phpmailer.php.

◆ $FromName

PHPMailer::$FromName = 'Root User'

Definition at line 79 of file class.phpmailer.php.

◆ $Helo

PHPMailer::$Helo = ''

Definition at line 245 of file class.phpmailer.php.

◆ $Host

PHPMailer::$Host = 'localhost'

Definition at line 229 of file class.phpmailer.php.

◆ $Hostname

PHPMailer::$Hostname = ''

Definition at line 199 of file class.phpmailer.php.

◆ $Ical

PHPMailer::$Ical = ''

Definition at line 128 of file class.phpmailer.php.

◆ $language

PHPMailer::$language = array()
protected

Definition at line 575 of file class.phpmailer.php.

◆ $lastMessageID

PHPMailer::$lastMessageID = ''
protected

Definition at line 554 of file class.phpmailer.php.

◆ $LE

PHPMailer::$LE = "\n"

Definition at line 391 of file class.phpmailer.php.

◆ $Mailer

PHPMailer::$Mailer = 'mail'

Definition at line 163 of file class.phpmailer.php.

◆ $mailHeader

PHPMailer::$mailHeader = ''
protected

Definition at line 149 of file class.phpmailer.php.

◆ $message_type

PHPMailer::$message_type = ''
protected

Definition at line 561 of file class.phpmailer.php.

◆ $MessageDate

PHPMailer::$MessageDate = ''

Definition at line 216 of file class.phpmailer.php.

◆ $MessageID

PHPMailer::$MessageID = ''

Definition at line 209 of file class.phpmailer.php.

◆ $MIMEBody

PHPMailer::$MIMEBody = ''
protected

Definition at line 135 of file class.phpmailer.php.

◆ $MIMEHeader

PHPMailer::$MIMEHeader = ''
protected

Definition at line 142 of file class.phpmailer.php.

◆ $Password

PHPMailer::$Password = ''

Definition at line 287 of file class.phpmailer.php.

◆ $PluginDir

PHPMailer::$PluginDir = ''

Definition at line 184 of file class.phpmailer.php.

◆ $Port

PHPMailer::$Port = 25

Definition at line 236 of file class.phpmailer.php.

◆ $Priority

PHPMailer::$Priority = null

Definition at line 42 of file class.phpmailer.php.

◆ $Realm

PHPMailer::$Realm = ''

Definition at line 301 of file class.phpmailer.php.

◆ $RecipientsQueue

PHPMailer::$RecipientsQueue = array()
protected

Definition at line 523 of file class.phpmailer.php.

◆ $ReplyTo

PHPMailer::$ReplyTo = array()
protected

Definition at line 502 of file class.phpmailer.php.

◆ $ReplyToQueue

PHPMailer::$ReplyToQueue = array()
protected

Definition at line 533 of file class.phpmailer.php.

◆ $ReturnPath

PHPMailer::$ReturnPath = ''

Definition at line 96 of file class.phpmailer.php.

◆ $Sender

PHPMailer::$Sender = ''

Definition at line 86 of file class.phpmailer.php.

◆ $Sendmail

PHPMailer::$Sendmail = '/usr/sbin/sendmail'

Definition at line 169 of file class.phpmailer.php.

◆ $sign_cert_file

PHPMailer::$sign_cert_file = ''
protected

Definition at line 589 of file class.phpmailer.php.

◆ $sign_extracerts_file

PHPMailer::$sign_extracerts_file = ''
protected

Definition at line 603 of file class.phpmailer.php.

◆ $sign_key_file

PHPMailer::$sign_key_file = ''
protected

Definition at line 596 of file class.phpmailer.php.

◆ $sign_key_pass

PHPMailer::$sign_key_pass = ''
protected

Definition at line 611 of file class.phpmailer.php.

◆ $SingleTo

PHPMailer::$SingleTo = false

Definition at line 361 of file class.phpmailer.php.

◆ $SingleToArray

PHPMailer::$SingleToArray = array()

Definition at line 368 of file class.phpmailer.php.

◆ $smtp

PHPMailer::$smtp = null
protected

Definition at line 474 of file class.phpmailer.php.

◆ $SMTPAuth

PHPMailer::$SMTPAuth = false

Definition at line 269 of file class.phpmailer.php.

◆ $SMTPAutoTLS

PHPMailer::$SMTPAutoTLS = true

Definition at line 260 of file class.phpmailer.php.

◆ $SMTPDebug

PHPMailer::$SMTPDebug = 0

Definition at line 329 of file class.phpmailer.php.

◆ $SMTPKeepAlive

PHPMailer::$SMTPKeepAlive = false

Definition at line 353 of file class.phpmailer.php.

◆ $SMTPOptions

PHPMailer::$SMTPOptions = array()

Definition at line 275 of file class.phpmailer.php.

◆ $SMTPSecure

PHPMailer::$SMTPSecure = ''

Definition at line 252 of file class.phpmailer.php.

◆ $Subject

PHPMailer::$Subject = ''

Definition at line 102 of file class.phpmailer.php.

◆ $Timeout

PHPMailer::$Timeout = 300

Definition at line 315 of file class.phpmailer.php.

◆ $to

PHPMailer::$to = array()
protected

Definition at line 481 of file class.phpmailer.php.

◆ $uniqueid

PHPMailer::$uniqueid = ''
protected

Definition at line 625 of file class.phpmailer.php.

◆ $Username

PHPMailer::$Username = ''

Definition at line 281 of file class.phpmailer.php.

◆ $UseSendmailOptions

PHPMailer::$UseSendmailOptions = true

Definition at line 176 of file class.phpmailer.php.

◆ $validator

PHPMailer::$validator = 'auto'
static

Definition at line 467 of file class.phpmailer.php.

◆ $Version

PHPMailer::$Version = '5.2.25'

Definition at line 34 of file class.phpmailer.php.

◆ $WordWrap

PHPMailer::$WordWrap = 0

Definition at line 156 of file class.phpmailer.php.

◆ $Workstation

PHPMailer::$Workstation = ''

Definition at line 308 of file class.phpmailer.php.

◆ $XMailer

PHPMailer::$XMailer = ''

Definition at line 458 of file class.phpmailer.php.

◆ CRLF

const PHPMailer::CRLF = "\r\n"

SMTP RFC standard line ending.

Definition at line 645 of file class.phpmailer.php.

◆ MAX_LINE_LENGTH

const PHPMailer::MAX_LINE_LENGTH = 998

Definition at line 651 of file class.phpmailer.php.

◆ STOP_CONTINUE

const PHPMailer::STOP_CONTINUE = 1

Error severity: message, likely ok to continue processing.

Definition at line 635 of file class.phpmailer.php.

◆ STOP_CRITICAL

const PHPMailer::STOP_CRITICAL = 2

Error severity: message, plus full stop, critical error reached.

Definition at line 640 of file class.phpmailer.php.

◆ STOP_MESSAGE

const PHPMailer::STOP_MESSAGE = 0

Error severity: message only, continue processing.

Definition at line 630 of file class.phpmailer.php.


The documentation for this class was generated from the following file: