ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
PHPMailer - PHP email creation and transport class. More...
Public Member Functions | |
__construct ($exceptions=null) | |
Constructor. More... | |
__destruct () | |
Destructor. More... | |
isHTML ($isHtml=true) | |
Sets message type to HTML or plain. More... | |
isSMTP () | |
Send messages using SMTP. More... | |
isMail () | |
Send messages using PHP's mail() function. More... | |
isSendmail () | |
Send messages using $Sendmail. More... | |
isQmail () | |
Send messages using qmail. More... | |
addAddress ($address, $name='') | |
Add a "To" address. More... | |
addCC ($address, $name='') | |
Add a "CC" address. More... | |
addBCC ($address, $name='') | |
Add a "BCC" address. More... | |
addReplyTo ($address, $name='') | |
Add a "Reply-To" address. More... | |
setFrom ($address, $name='', $auto=true) | |
Set the From and FromName properties. More... | |
getLastMessageID () | |
Return the Message-ID header of the last email. More... | |
punyencodeAddress ($address) | |
Converts IDN in given email address to its ASCII form, also known as punycode, if possible. More... | |
send () | |
Create a message and send it. More... | |
preSend () | |
Prepare a message for sending. More... | |
postSend () | |
Actually send a message via the selected mechanism. More... | |
getSMTPInstance () | |
Get an instance to use for SMTP operations. More... | |
setSMTPInstance (SMTP $smtp) | |
Provide an instance to use for SMTP operations. More... | |
smtpConnect ($options=null) | |
Initiate a connection to an SMTP server. More... | |
smtpClose () | |
Close the active SMTP session if one exists. More... | |
setLanguage ($langcode='en', $lang_path='') | |
Set the language for error messages. More... | |
getTranslations () | |
Get the array of strings for the current language. More... | |
addrAppend ($type, $addr) | |
Create recipient headers. More... | |
addrFormat ($addr) | |
Format an address for use in a message header. More... | |
wrapText ($message, $length, $qp_mode=false) | |
Word-wrap message. More... | |
utf8CharBoundary ($encodedText, $maxLength) | |
Find the last character boundary prior to $maxLength in a utf-8 quoted-printable encoded string. More... | |
setWordWrap () | |
Apply word wrapping to the message body. More... | |
createHeader () | |
Assemble message headers. More... | |
getMailMIME () | |
Get the message MIME type headers. More... | |
getSentMIMEMessage () | |
Returns the whole MIME message. More... | |
createBody () | |
Assemble the message body. More... | |
headerLine ($name, $value) | |
Format a header line. More... | |
textLine ($value) | |
Return a formatted mail line. More... | |
addAttachment ( $path, $name='', $encoding=self::ENCODING_BASE64, $type='', $disposition='attachment') | |
Add an attachment from a path on the filesystem. More... | |
getAttachments () | |
Return the array of attachments. More... | |
encodeString ($str, $encoding=self::ENCODING_BASE64) | |
Encode a string in requested format. More... | |
encodeHeader ($str, $position='text') | |
Encode a header value (not including its label) optimally. More... | |
hasMultiBytes ($str) | |
Check if a string contains multi-byte characters. More... | |
has8bitChars ($text) | |
Does a string contain any 8-bit chars (in any charset)? More... | |
base64EncodeWrapMB ($str, $linebreak=null) | |
Encode and wrap long multibyte strings for mail headers without breaking lines within a character. More... | |
encodeQP ($string) | |
Encode a string in quoted-printable format. More... | |
encodeQ ($str, $position='text') | |
Encode a string using Q encoding. More... | |
addStringAttachment ( $string, $filename, $encoding=self::ENCODING_BASE64, $type='', $disposition='attachment') | |
Add a string or binary attachment (non-filesystem). More... | |
addEmbeddedImage ( $path, $cid, $name='', $encoding=self::ENCODING_BASE64, $type='', $disposition='inline') | |
Add an embedded (inline) attachment from a file. More... | |
addStringEmbeddedImage ( $string, $cid, $name='', $encoding=self::ENCODING_BASE64, $type='', $disposition='inline') | |
Add an embedded stringified attachment. More... | |
inlineImageExists () | |
Check if an inline attachment is present. More... | |
attachmentExists () | |
Check if an attachment (non-inline) is present. More... | |
alternativeExists () | |
Check if this message has an alternative body set. More... | |
clearQueuedAddresses ($kind) | |
Clear queued addresses of given kind. More... | |
clearAddresses () | |
Clear all To recipients. More... | |
clearCCs () | |
Clear all CC recipients. More... | |
clearBCCs () | |
Clear all BCC recipients. More... | |
clearReplyTos () | |
Clear all ReplyTo recipients. More... | |
clearAllRecipients () | |
Clear all recipient types. More... | |
clearAttachments () | |
Clear all filesystem, string, and binary attachments. More... | |
clearCustomHeaders () | |
Clear all custom headers. More... | |
isError () | |
Check if an error occurred. More... | |
addCustomHeader ($name, $value=null) | |
Add a custom header. More... | |
getCustomHeaders () | |
Returns all custom headers. More... | |
msgHTML ($message, $basedir='', $advanced=false) | |
Create a message body from an HTML string. More... | |
html2text ($html, $advanced=false) | |
Convert an HTML string into plain text. More... | |
set ($name, $value='') | |
Set or reset instance properties. More... | |
secureHeader ($str) | |
Strip newlines to prevent header injection. More... | |
sign ($cert_filename, $key_filename, $key_pass, $extracerts_filename='') | |
Set the public and private key files and password for S/MIME signing. More... | |
DKIM_QP ($txt) | |
Quoted-Printable-encode a DKIM header. More... | |
DKIM_Sign ($signHeader) | |
Generate a DKIM signature. More... | |
DKIM_HeaderC ($signHeader) | |
Generate a DKIM canonicalization header. More... | |
DKIM_BodyC ($body) | |
Generate a DKIM canonicalization body. More... | |
DKIM_Add ($headers_line, $subject, $body) | |
Create the DKIM header and body in a new message header. More... | |
getToAddresses () | |
Allows for public read access to 'to' property. More... | |
getCcAddresses () | |
Allows for public read access to 'cc' property. More... | |
getBccAddresses () | |
Allows for public read access to 'bcc' property. More... | |
getReplyToAddresses () | |
Allows for public read access to 'ReplyTo' property. More... | |
getAllRecipientAddresses () | |
Allows for public read access to 'all_recipients' property. More... | |
getOAuth () | |
Get the OAuth instance. More... | |
setOAuth (OAuth $oauth) | |
Set an OAuth instance. More... | |
Static Public Member Functions | |
static | 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. More... | |
static | validateAddress ($address, $patternselect=null) |
Check that a string looks like an email address. More... | |
static | idnSupported () |
Tells whether IDNs (Internationalized Domain Names) are supported or not. More... | |
static | rfcDate () |
Return an RFC 822 formatted date. More... | |
static | isValidHost ($host) |
Validate whether a string contains a valid value to use as a hostname or IP address. More... | |
static | _mime_types ($ext='') |
Get the MIME type for a file extension. More... | |
static | filenameToType ($filename) |
Map a file name to a MIME type. More... | |
static | mb_pathinfo ($path, $options=null) |
Multi-byte-safe pathinfo replacement. More... | |
static | normalizeBreaks ($text, $breaktype=null) |
Normalize line breaks in a string. More... | |
static | stripTrailingWSP ($text) |
Remove trailing breaks from a string. More... | |
static | getLE () |
Return the current line break format string. More... | |
static | hasLineLongerThanMax ($str) |
Detect if a string contains a line longer than the maximum line length allowed by RFC 2822 section 2.1.1. More... | |
static | quotedString ($str) |
If a string contains any "special" characters, double-quote the name, and escape any double quotes with a backslash. More... | |
Data Fields | |
const | CHARSET_ASCII = 'us-ascii' |
const | CHARSET_ISO88591 = 'iso-8859-1' |
const | CHARSET_UTF8 = 'utf-8' |
const | CONTENT_TYPE_PLAINTEXT = 'text/plain' |
const | CONTENT_TYPE_TEXT_CALENDAR = 'text/calendar' |
const | CONTENT_TYPE_TEXT_HTML = 'text/html' |
const | CONTENT_TYPE_MULTIPART_ALTERNATIVE = 'multipart/alternative' |
const | CONTENT_TYPE_MULTIPART_MIXED = 'multipart/mixed' |
const | CONTENT_TYPE_MULTIPART_RELATED = 'multipart/related' |
const | ENCODING_7BIT = '7bit' |
const | ENCODING_8BIT = '8bit' |
const | ENCODING_BASE64 = 'base64' |
const | ENCODING_BINARY = 'binary' |
const | ENCODING_QUOTED_PRINTABLE = 'quoted-printable' |
const | ENCRYPTION_STARTTLS = 'tls' |
const | ENCRYPTION_SMTPS = 'ssl' |
const | ICAL_METHOD_REQUEST = 'REQUEST' |
const | ICAL_METHOD_PUBLISH = 'PUBLISH' |
const | ICAL_METHOD_REPLY = 'REPLY' |
const | ICAL_METHOD_ADD = 'ADD' |
const | ICAL_METHOD_CANCEL = 'CANCEL' |
const | ICAL_METHOD_REFRESH = 'REFRESH' |
const | ICAL_METHOD_COUNTER = 'COUNTER' |
const | ICAL_METHOD_DECLINECOUNTER = 'DECLINECOUNTER' |
$Priority | |
$CharSet = self::CHARSET_ISO88591 | |
$ContentType = self::CONTENT_TYPE_PLAINTEXT | |
$Encoding = self::ENCODING_8BIT | |
$ErrorInfo = '' | |
$From = 'root@localhost' | |
$FromName = 'Root User' | |
$Sender = '' | |
$Subject = '' | |
$Body = '' | |
$AltBody = '' | |
$Ical = '' | |
$WordWrap = 0 | |
$Mailer = 'mail' | |
$Sendmail = '/usr/sbin/sendmail' | |
$UseSendmailOptions = true | |
$ConfirmReadingTo = '' | |
$Hostname = '' | |
$MessageID = '' | |
$MessageDate = '' | |
$Host = 'localhost' | |
$Port = 25 | |
$Helo = '' | |
$SMTPSecure = '' | |
$SMTPAutoTLS = true | |
$SMTPAuth = false | |
$SMTPOptions = [] | |
$Username = '' | |
$Password = '' | |
$AuthType = '' | |
$Timeout = 300 | |
$dsn = '' | |
Comma separated list of DSN notifications 'NEVER' under no circumstances a DSN must be returned to the sender. More... | |
$SMTPDebug = 0 | |
$Debugoutput = 'echo' | |
$SMTPKeepAlive = false | |
$SingleTo = false | |
$do_verp = false | |
$AllowEmpty = false | |
$DKIM_selector = '' | |
$DKIM_identity = '' | |
$DKIM_passphrase = '' | |
$DKIM_domain = '' | |
$DKIM_copyHeaderFields = true | |
$DKIM_extraHeaders = [] | |
$DKIM_private = '' | |
$DKIM_private_string = '' | |
$action_function = '' | |
$XMailer = '' | |
const | VERSION = '6.1.6' |
const | STOP_MESSAGE = 0 |
const | STOP_CONTINUE = 1 |
const | STOP_CRITICAL = 2 |
const | CRLF = "\r\n" |
The SMTP standard CRLF line break. More... | |
const | FWS = ' ' |
"Folding White Space" a white space string used for line folding. More... | |
const | MAIL_MAX_LINE_LENGTH = 63 |
const | MAX_LINE_LENGTH = 998 |
const | STD_LINE_LENGTH = 76 |
Static Public Attributes | |
static | $validator = 'php' |
Protected Member Functions | |
edebug ($str) | |
Output debugging info via user-defined method. More... | |
addOrEnqueueAnAddress ($kind, $address, $name) | |
Add an address to one of the recipient arrays or to the ReplyTo array. More... | |
addAnAddress ($kind, $address, $name='') | |
Add an address to one of the recipient arrays or to the ReplyTo array. More... | |
sendmailSend ($header, $body) | |
Send mail using the $Sendmail program. More... | |
mailSend ($header, $body) | |
Send mail using the PHP mail() function. More... | |
smtpSend ($header, $body) | |
Send mail via SMTP. More... | |
generateId () | |
Create a unique ID to use for boundaries. More... | |
getBoundary ($boundary, $charSet, $contentType, $encoding) | |
Return the start of a message boundary. More... | |
endBoundary ($boundary) | |
Return the end of a message boundary. More... | |
setMessageType () | |
Set the message type. More... | |
attachAll ($disposition_type, $boundary) | |
Attach all file, string, and binary attachments to the message. More... | |
encodeFile ($path, $encoding=self::ENCODING_BASE64) | |
Encode a file attachment in requested format. More... | |
validateEncoding ($encoding) | |
Validate encodings. More... | |
cidExists ($cid) | |
Check if an embedded attachment is present with this cid. More... | |
setError ($msg) | |
Add an error message to the error container. More... | |
serverHostname () | |
Get the server hostname. More... | |
lang ($key) | |
Get an error message in the current language. More... | |
doCallback ($isSent, $to, $cc, $bcc, $subject, $body, $from, $extra) | |
Perform a callback. More... | |
Static Protected Member Functions | |
static | isShellSafe ($string) |
Fix CVE-2016-10033 and CVE-2016-10045 by disallowing potentially unsafe shell characters. More... | |
static | isPermittedPath ($path) |
Check whether a file path is of a permitted type. More... | |
static | setLE ($le) |
Set the line break format string, e.g. More... | |
Protected Attributes | |
$MIMEBody = '' | |
$MIMEHeader = '' | |
$mailHeader = '' | |
$oauth | |
$SingleToArray = [] | |
$smtp | |
$to = [] | |
$cc = [] | |
$bcc = [] | |
$ReplyTo = [] | |
$all_recipients = [] | |
$RecipientsQueue = [] | |
$ReplyToQueue = [] | |
$attachment = [] | |
$CustomHeader = [] | |
$lastMessageID = '' | |
$message_type = '' | |
$boundary = [] | |
$language = [] | |
$error_count = 0 | |
$sign_cert_file = '' | |
$sign_key_file = '' | |
$sign_extracerts_file = '' | |
$sign_key_pass = '' | |
$exceptions = false | |
$uniqueid = '' | |
Static Protected Attributes | |
static | $IcalMethods |
static | $LE = self::CRLF |
Private Member Functions | |
mailPassthru ($to, $subject, $body, $header, $params) | |
Call mail() in a safe_mode-aware fashion. More... | |
PHPMailer - PHP email creation and transport class.
Definition at line 31 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::__construct | ( | $exceptions = null | ) |
Constructor.
bool | $exceptions | Should we throw external exceptions? |
Definition at line 821 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$exceptions.
PHPMailer\PHPMailer\PHPMailer::__destruct | ( | ) |
Destructor.
Definition at line 833 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\smtpClose().
|
static |
Get the MIME type for a file extension.
string | $ext | File extension |
Definition at line 4140 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::addAddress | ( | $address, | |
$name = '' |
|||
) |
Add a "To" address.
string | $address | The email address to send to |
string | $name |
Exception |
Definition at line 1005 of file PHPMailer.php.
References $name, and PHPMailer\PHPMailer\PHPMailer\addOrEnqueueAnAddress().
|
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.
string | $kind | One of 'to', 'cc', 'bcc', or 'ReplyTo' |
string | $address | The email address to send, resp. to reply to |
string | $name |
Exception |
Definition at line 1124 of file PHPMailer.php.
References $name, PHPMailer\PHPMailer\PHPMailer\edebug(), PHPMailer\PHPMailer\PHPMailer\lang(), and PHPMailer\PHPMailer\PHPMailer\setError().
PHPMailer\PHPMailer\PHPMailer::addAttachment | ( | $path, | |
$name = '' , |
|||
$encoding = self::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. Explicitly does not support passing URLs; PHPMailer is not an HTTP client. If you need to do that, fetch the resource yourself and pass it in via a local file or string.
string | $path | Path to the attachment |
string | $name | Overrides the attachment name |
string | $encoding | File encoding (see $Encoding) |
string | $type | File extension (MIME) type |
string | $disposition | Disposition to use |
Exception |
Definition at line 2963 of file PHPMailer.php.
References $filename, $name, $path, $type, attachment(), PHPMailer\PHPMailer\PHPMailer\edebug(), PHPMailer\PHPMailer\PHPMailer\lang(), PHPMailer\PHPMailer\PHPMailer\setError(), and PHPMailer\PHPMailer\PHPMailer\validateEncoding().
PHPMailer\PHPMailer\PHPMailer::addBCC | ( | $address, | |
$name = '' |
|||
) |
Add a "BCC" address.
string | $address | The email address to send to |
string | $name |
Exception |
Definition at line 1035 of file PHPMailer.php.
References $name, and PHPMailer\PHPMailer\PHPMailer\addOrEnqueueAnAddress().
PHPMailer\PHPMailer\PHPMailer::addCC | ( | $address, | |
$name = '' |
|||
) |
Add a "CC" address.
string | $address | The email address to send to |
string | $name |
Exception |
Definition at line 1020 of file PHPMailer.php.
References $name, and PHPMailer\PHPMailer\PHPMailer\addOrEnqueueAnAddress().
PHPMailer\PHPMailer\PHPMailer::addCustomHeader | ( | $name, | |
$value = null |
|||
) |
Add a custom header.
$name value can be overloaded to contain both header name and value (name:value).
string | $name | Custom header name |
string | null | $value | Header value |
Exception |
Definition at line 3954 of file PHPMailer.php.
References $name.
PHPMailer\PHPMailer\PHPMailer::addEmbeddedImage | ( | $path, | |
$cid, | |||
$name = '' , |
|||
$encoding = self::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!
string | $path | Path to the attachment |
string | $cid | Content ID of the attachment; Use this to reference the content when using an embedded image in HTML |
string | $name | Overrides the attachment name |
string | $encoding | File encoding (see $Encoding) |
string | $type | File MIME type |
string | $disposition | Disposition to use |
Exception |
Definition at line 3523 of file PHPMailer.php.
References $filename, $name, $path, $type, attachment(), PHPMailer\PHPMailer\PHPMailer\edebug(), PHPMailer\PHPMailer\PHPMailer\lang(), PHPMailer\PHPMailer\PHPMailer\setError(), and PHPMailer\PHPMailer\PHPMailer\validateEncoding().
Referenced by PHPMailer\PHPMailer\PHPMailer\msgHTML().
|
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.
string | $kind | One of 'to', 'cc', 'bcc', or 'ReplyTo' |
string | $address | The email address to send, resp. to reply to |
string | $name |
Exception |
Definition at line 1069 of file PHPMailer.php.
References $name, PHPMailer\PHPMailer\$params, PHPMailer\PHPMailer\PHPMailer\edebug(), PHPMailer\PHPMailer\PHPMailer\has8bitChars(), PHPMailer\PHPMailer\PHPMailer\lang(), and PHPMailer\PHPMailer\PHPMailer\setError().
Referenced by PHPMailer\PHPMailer\PHPMailer\addAddress(), PHPMailer\PHPMailer\PHPMailer\addBCC(), PHPMailer\PHPMailer\PHPMailer\addCC(), and PHPMailer\PHPMailer\PHPMailer\addReplyTo().
PHPMailer\PHPMailer\PHPMailer::addrAppend | ( | $type, | |
$addr | |||
) |
Create recipient headers.
string | $type | |
array | $addr | An array of recipients, where each recipient is a 2-element indexed array with element 0 containing an address and element 1 containing a name, like: [['joe@e', 'Joe User'], [' xamp le.co mzoe@e', 'Zoe User']] xamp le.co m |
Definition at line 2173 of file PHPMailer.php.
References $type, and PHPMailer\PHPMailer\PHPMailer\addrFormat().
Referenced by PHPMailer\PHPMailer\PHPMailer\createHeader(), and PHPMailer\PHPMailer\PHPMailer\preSend().
PHPMailer\PHPMailer\PHPMailer::addReplyTo | ( | $address, | |
$name = '' |
|||
) |
Add a "Reply-To" address.
string | $address | The email address to reply to |
string | $name |
Exception |
Definition at line 1050 of file PHPMailer.php.
References $name, and PHPMailer\PHPMailer\PHPMailer\addOrEnqueueAnAddress().
PHPMailer\PHPMailer\PHPMailer::addrFormat | ( | $addr | ) |
Format an address for use in a message header.
array | $addr | A 2-element indexed array, element 0 containing an address, element 1 containing a name like ['joe@e', 'Joe User'] xamp le.co m |
Definition at line 2191 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\encodeHeader(), and PHPMailer\PHPMailer\PHPMailer\secureHeader().
Referenced by PHPMailer\PHPMailer\PHPMailer\addrAppend(), PHPMailer\PHPMailer\PHPMailer\createHeader(), and PHPMailer\PHPMailer\PHPMailer\mailSend().
PHPMailer\PHPMailer\PHPMailer::addStringAttachment | ( | $string, | |
$filename, | |||
$encoding = self::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.
string | $string | String attachment data |
string | $filename | Name of the attachment |
string | $encoding | File encoding (see $Encoding) |
string | $type | File extension (MIME) type |
string | $disposition | Disposition to use |
Exception |
Definition at line 3461 of file PHPMailer.php.
References $filename, $type, attachment(), PHPMailer\PHPMailer\PHPMailer\edebug(), PHPMailer\PHPMailer\PHPMailer\lang(), PHPMailer\PHPMailer\PHPMailer\setError(), and PHPMailer\PHPMailer\PHPMailer\validateEncoding().
PHPMailer\PHPMailer\PHPMailer::addStringEmbeddedImage | ( | $string, | |
$cid, | |||
$name = '' , |
|||
$encoding = self::ENCODING_BASE64 , |
|||
$type = '' , |
|||
$disposition = 'inline' |
|||
) |
Add an embedded stringified attachment.
This can include images, sounds, and just about any other document type. If your filename doesn't contain an extension, be sure to set the $type to an appropriate MIME type.
string | $string | The attachment binary data |
string | $cid | Content ID of the attachment; Use this to reference the content when using an embedded image in HTML |
string | $name | A filename for the attachment. If this contains an extension, PHPMailer will attempt to set a MIME type for the attachment. For example 'file.jpg' would get an 'image/jpeg' MIME type. |
string | $encoding | File encoding (see $Encoding), defaults to 'base64' |
string | $type | MIME type - will be used in preference to any automatically derived type |
string | $disposition | Disposition to use |
Exception |
Definition at line 3593 of file PHPMailer.php.
References $name, $type, attachment(), PHPMailer\PHPMailer\PHPMailer\edebug(), PHPMailer\PHPMailer\PHPMailer\lang(), PHPMailer\PHPMailer\PHPMailer\setError(), and PHPMailer\PHPMailer\PHPMailer\validateEncoding().
Referenced by PHPMailer\PHPMailer\PHPMailer\msgHTML().
PHPMailer\PHPMailer\PHPMailer::alternativeExists | ( | ) |
Check if this message has an alternative body set.
Definition at line 3712 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\msgHTML(), PHPMailer\PHPMailer\PHPMailer\preSend(), and PHPMailer\PHPMailer\PHPMailer\setMessageType().
|
protected |
Attach all file, string, and binary attachments to the message.
Returns an empty string on failure.
string | $disposition_type | |
string | $boundary |
Exception |
Definition at line 3033 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$attachment, PHPMailer\PHPMailer\PHPMailer\$boundary, $name, $path, $type, attachment(), PHPMailer\PHPMailer\PHPMailer\encodeFile(), PHPMailer\PHPMailer\PHPMailer\encodeHeader(), PHPMailer\PHPMailer\PHPMailer\encodeString(), GuzzleHttp\Psr7\hash(), PHPMailer\PHPMailer\PHPMailer\isError(), and PHPMailer\PHPMailer\PHPMailer\secureHeader().
Referenced by PHPMailer\PHPMailer\PHPMailer\createBody().
PHPMailer\PHPMailer\PHPMailer::attachmentExists | ( | ) |
Check if an attachment (non-inline) is present.
Definition at line 3696 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$attachment, and attachment().
Referenced by PHPMailer\PHPMailer\PHPMailer\setMessageType().
PHPMailer\PHPMailer\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.
string | $str | multi-byte text to wrap encode |
string | $linebreak | string to use as linefeed/end-of-line |
Definition at line 3347 of file PHPMailer.php.
References $end, $i, and $start.
Referenced by PHPMailer\PHPMailer\PHPMailer\encodeHeader().
|
protected |
Check if an embedded attachment is present with this cid.
string | $cid |
Definition at line 3664 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$attachment, and attachment().
Referenced by PHPMailer\PHPMailer\PHPMailer\msgHTML().
PHPMailer\PHPMailer\PHPMailer::clearAddresses | ( | ) |
Clear all To recipients.
Definition at line 3735 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$to, and PHPMailer\PHPMailer\PHPMailer\clearQueuedAddresses().
PHPMailer\PHPMailer\PHPMailer::clearAllRecipients | ( | ) |
Clear all recipient types.
Definition at line 3780 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::clearAttachments | ( | ) |
Clear all filesystem, string, and binary attachments.
Definition at line 3792 of file PHPMailer.php.
References attachment().
PHPMailer\PHPMailer\PHPMailer::clearBCCs | ( | ) |
Clear all BCC recipients.
Definition at line 3759 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$bcc, and PHPMailer\PHPMailer\PHPMailer\clearQueuedAddresses().
PHPMailer\PHPMailer\PHPMailer::clearCCs | ( | ) |
Clear all CC recipients.
Definition at line 3747 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$cc, and PHPMailer\PHPMailer\PHPMailer\clearQueuedAddresses().
PHPMailer\PHPMailer\PHPMailer::clearCustomHeaders | ( | ) |
Clear all custom headers.
Definition at line 3800 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::clearQueuedAddresses | ( | $kind | ) |
Clear queued addresses of given kind.
string | $kind | 'to', 'cc', or 'bcc' |
Definition at line 3722 of file PHPMailer.php.
References PHPMailer\PHPMailer\$params.
Referenced by PHPMailer\PHPMailer\PHPMailer\clearAddresses(), PHPMailer\PHPMailer\PHPMailer\clearBCCs(), and PHPMailer\PHPMailer\PHPMailer\clearCCs().
PHPMailer\PHPMailer\PHPMailer::clearReplyTos | ( | ) |
Clear all ReplyTo recipients.
Definition at line 3771 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::createBody | ( | ) |
Assemble the message body.
Returns an empty string on failure.
Exception |
Definition at line 2573 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$CharSet, PHPMailer\PHPMailer\PHPMailer\$Encoding, PHPMailer\PHPMailer\PHPMailer\$uniqueid, PHPMailer\PHPMailer\PHPMailer\attachAll(), PHPMailer\PHPMailer\PHPMailer\encodeString(), PHPMailer\PHPMailer\PHPMailer\endBoundary(), PHPMailer\PHPMailer\PHPMailer\generateId(), PHPMailer\PHPMailer\PHPMailer\getBoundary(), PHPMailer\PHPMailer\PHPMailer\getMailMIME(), PHPMailer\PHPMailer\PHPMailer\has8bitChars(), PHPMailer\PHPMailer\PHPMailer\headerLine(), PHPMailer\PHPMailer\PHPMailer\isError(), PHPMailer\PHPMailer\PHPMailer\lang(), PHPMailer\PHPMailer\PHPMailer\setWordWrap(), and PHPMailer\PHPMailer\PHPMailer\textLine().
Referenced by PHPMailer\PHPMailer\PHPMailer\preSend().
PHPMailer\PHPMailer\PHPMailer::createHeader | ( | ) |
Assemble message headers.
Definition at line 2381 of file PHPMailer.php.
References $header, PHPMailer\PHPMailer\PHPMailer\$MessageID, $result, PHPMailer\PHPMailer\PHPMailer\addrAppend(), PHPMailer\PHPMailer\PHPMailer\addrFormat(), PHPMailer\PHPMailer\PHPMailer\encodeHeader(), PHPMailer\PHPMailer\PHPMailer\getMailMIME(), PHPMailer\PHPMailer\PHPMailer\headerLine(), PHPMailer\PHPMailer\PHPMailer\secureHeader(), and PHPMailer\PHPMailer\PHPMailer\serverHostname().
Referenced by PHPMailer\PHPMailer\PHPMailer\preSend().
PHPMailer\PHPMailer\PHPMailer::DKIM_Add | ( | $headers_line, | |
$subject, | |||
$body | |||
) |
Create the DKIM header and body in a new message header.
string | $headers_line | Header lines |
string | $subject | Subject |
string | $body | Body |
Exception |
Definition at line 4579 of file PHPMailer.php.
References $header, PHPMailer\PHPMailer\PHPMailer\DKIM_BodyC(), PHPMailer\PHPMailer\PHPMailer\DKIM_HeaderC(), PHPMailer\PHPMailer\PHPMailer\DKIM_QP(), PHPMailer\PHPMailer\PHPMailer\DKIM_Sign(), and GuzzleHttp\Psr7\hash().
Referenced by PHPMailer\PHPMailer\PHPMailer\preSend().
PHPMailer\PHPMailer\PHPMailer::DKIM_BodyC | ( | $body | ) |
Generate a DKIM canonicalization body.
Uses the 'simple' algorithm from RFC6376 section 3.4.3. Canonicalized bodies should always use CRLF, regardless of mailer setting.
string | $body | Message Body |
Definition at line 4556 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\DKIM_Add().
PHPMailer\PHPMailer\PHPMailer::DKIM_HeaderC | ( | $signHeader | ) |
Generate a DKIM canonicalization header.
Uses the 'relaxed' algorithm from RFC6376 section 3.4.2. Canonicalized headers should always use CRLF, regardless of mailer setting.
string | $signHeader | Header |
Definition at line 4512 of file PHPMailer.php.
References $key.
Referenced by PHPMailer\PHPMailer\PHPMailer\DKIM_Add().
PHPMailer\PHPMailer\PHPMailer::DKIM_QP | ( | $txt | ) |
Quoted-Printable-encode a DKIM header.
string | $txt |
Definition at line 4449 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\DKIM_Add().
PHPMailer\PHPMailer\PHPMailer::DKIM_Sign | ( | $signHeader | ) |
Generate a DKIM signature.
string | $signHeader |
Exception |
Definition at line 4474 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\lang().
Referenced by PHPMailer\PHPMailer\PHPMailer\DKIM_Add().
|
protected |
Perform a callback.
bool | $isSent | |
array | $to | |
array | $cc | |
array | $bcc | |
string | $subject | |
string | $body | |
string | $from | |
array | $extra |
Definition at line 4816 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$bcc, PHPMailer\PHPMailer\PHPMailer\$cc, $from, and PHPMailer\PHPMailer\PHPMailer\$to.
Referenced by PHPMailer\PHPMailer\PHPMailer\mailSend(), PHPMailer\PHPMailer\PHPMailer\sendmailSend(), and PHPMailer\PHPMailer\PHPMailer\smtpSend().
|
protected |
Output debugging info via user-defined method.
Only generates output if SMTP debug output is enabled (
string | $str |
Definition at line 886 of file PHPMailer.php.
References Monolog\Handler\error_log().
Referenced by PHPMailer\PHPMailer\PHPMailer\addAnAddress(), PHPMailer\PHPMailer\PHPMailer\addAttachment(), PHPMailer\PHPMailer\PHPMailer\addEmbeddedImage(), PHPMailer\PHPMailer\PHPMailer\addOrEnqueueAnAddress(), PHPMailer\PHPMailer\PHPMailer\addStringAttachment(), PHPMailer\PHPMailer\PHPMailer\addStringEmbeddedImage(), PHPMailer\PHPMailer\PHPMailer\encodeFile(), PHPMailer\PHPMailer\PHPMailer\postSend(), PHPMailer\PHPMailer\PHPMailer\preSend(), PHPMailer\PHPMailer\PHPMailer\setFrom(), and PHPMailer\PHPMailer\PHPMailer\smtpConnect().
|
protected |
Encode a file attachment in requested format.
Returns an empty string on failure.
string | $path | The full path to the file |
string | $encoding | The encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable' |
Definition at line 3143 of file PHPMailer.php.
References $path, PHPMailer\PHPMailer\PHPMailer\edebug(), PHPMailer\PHPMailer\PHPMailer\encodeString(), PHPMailer\PHPMailer\PHPMailer\lang(), and PHPMailer\PHPMailer\PHPMailer\setError().
Referenced by PHPMailer\PHPMailer\PHPMailer\attachAll().
PHPMailer\PHPMailer\PHPMailer::encodeHeader | ( | $str, | |
$position = 'text' |
|||
) |
Encode a header value (not including its label) optimally.
Picks shortest of Q, B, or none. Result includes folding if needed. See RFC822 definitions for phrase, comment and text positions.
string | $str | The header value to encode |
string | $position | What context the string will be used in |
Definition at line 3224 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$CharSet, PHPMailer\PHPMailer\PHPMailer\base64EncodeWrapMB(), PHPMailer\PHPMailer\PHPMailer\encodeQ(), PHPMailer\PHPMailer\PHPMailer\has8bitChars(), PHPMailer\PHPMailer\PHPMailer\hasMultiBytes(), and PHPMailer\PHPMailer\PHPMailer\wrapText().
Referenced by PHPMailer\PHPMailer\PHPMailer\addrFormat(), PHPMailer\PHPMailer\PHPMailer\attachAll(), PHPMailer\PHPMailer\PHPMailer\createHeader(), PHPMailer\PHPMailer\PHPMailer\mailPassthru(), and PHPMailer\PHPMailer\PHPMailer\preSend().
PHPMailer\PHPMailer\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 |
Definition at line 3403 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\encodeHeader().
PHPMailer\PHPMailer\PHPMailer::encodeQP | ( | $string | ) |
Encode a string in quoted-printable format.
According to RFC2045 section 6.7.
string | $string | The text to encode |
Definition at line 3388 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\encodeString().
PHPMailer\PHPMailer\PHPMailer::encodeString | ( | $str, | |
$encoding = self::ENCODING_BASE64 |
|||
) |
Encode a string in requested format.
Returns an empty string on failure.
string | $str | The text to encode |
string | $encoding | The encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable' |
Exception |
Definition at line 3178 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\encodeQP(), PHPMailer\PHPMailer\PHPMailer\lang(), and PHPMailer\PHPMailer\PHPMailer\setError().
Referenced by PHPMailer\PHPMailer\PHPMailer\attachAll(), PHPMailer\PHPMailer\PHPMailer\createBody(), and PHPMailer\PHPMailer\PHPMailer\encodeFile().
|
protected |
Return the end of a message boundary.
string | $boundary |
Definition at line 2893 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$boundary.
Referenced by PHPMailer\PHPMailer\PHPMailer\createBody().
|
static |
Map a file name to a MIME type.
Defaults to 'application/octet-stream', i.e.. arbitrary binary data.
string | $filename | A file name or full path, does not need to exist as a file |
Definition at line 4271 of file PHPMailer.php.
References $filename.
|
protected |
Create a unique ID to use for boundaries.
CryptographicallySecureRandomnessInspection
Definition at line 2541 of file PHPMailer.php.
References GuzzleHttp\Psr7\hash().
Referenced by PHPMailer\PHPMailer\PHPMailer\createBody().
PHPMailer\PHPMailer\PHPMailer::getAllRecipientAddresses | ( | ) |
Allows for public read access to 'all_recipients' property.
Before the send() call, queued addresses (i.e. with IDN) are not yet included.
Definition at line 4799 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$all_recipients.
PHPMailer\PHPMailer\PHPMailer::getAttachments | ( | ) |
Return the array of attachments.
Definition at line 3017 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$attachment.
PHPMailer\PHPMailer\PHPMailer::getBccAddresses | ( | ) |
Allows for public read access to 'bcc' property.
Before the send() call, queued addresses (i.e. with IDN) are not yet included.
Definition at line 4777 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$bcc.
|
protected |
Return the start of a message boundary.
string | $boundary | |
string | $charSet | |
string | $contentType | |
string | $encoding |
Definition at line 2862 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$boundary, PHPMailer\PHPMailer\PHPMailer\$CharSet, PHPMailer\PHPMailer\PHPMailer\$ContentType, $contentType, PHPMailer\PHPMailer\PHPMailer\$Encoding, $result, PHPMailer\PHPMailer\PHPMailer\headerLine(), and PHPMailer\PHPMailer\PHPMailer\textLine().
Referenced by PHPMailer\PHPMailer\PHPMailer\createBody().
PHPMailer\PHPMailer\PHPMailer::getCcAddresses | ( | ) |
Allows for public read access to 'cc' property.
Before the send() call, queued addresses (i.e. with IDN) are not yet included.
Definition at line 4766 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$cc.
PHPMailer\PHPMailer\PHPMailer::getCustomHeaders | ( | ) |
Returns all custom headers.
Definition at line 3980 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$CustomHeader.
PHPMailer\PHPMailer\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.
Definition at line 1281 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$lastMessageID.
|
static |
Return the current line break format string.
Definition at line 4411 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::getMailMIME | ( | ) |
Get the message MIME type headers.
Definition at line 2474 of file PHPMailer.php.
References $result, PHPMailer\PHPMailer\PHPMailer\headerLine(), and PHPMailer\PHPMailer\PHPMailer\textLine().
Referenced by PHPMailer\PHPMailer\PHPMailer\createBody(), and PHPMailer\PHPMailer\PHPMailer\createHeader().
PHPMailer\PHPMailer\PHPMailer::getOAuth | ( | ) |
Get the OAuth instance.
Definition at line 4828 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$oauth.
PHPMailer\PHPMailer\PHPMailer::getReplyToAddresses | ( | ) |
Allows for public read access to 'ReplyTo' property.
Before the send() call, queued addresses (i.e. with IDN) are not yet included.
Definition at line 4788 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$ReplyTo.
PHPMailer\PHPMailer\PHPMailer::getSentMIMEMessage | ( | ) |
Returns the whole MIME message.
Includes complete headers and body. Only valid post preSend().
Definition at line 2530 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$MIMEBody.
PHPMailer\PHPMailer\PHPMailer::getSMTPInstance | ( | ) |
Get an instance to use for SMTP operations.
Override this function to load your own SMTP implementation, or set one with setSMTPInstance.
Definition at line 1821 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$smtp.
Referenced by PHPMailer\PHPMailer\PHPMailer\smtpConnect().
PHPMailer\PHPMailer\PHPMailer::getToAddresses | ( | ) |
Allows for public read access to 'to' property.
Before the send() call, queued addresses (i.e. with IDN) are not yet included.
Definition at line 4755 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$to.
PHPMailer\PHPMailer\PHPMailer::getTranslations | ( | ) |
Get the array of strings for the current language.
Definition at line 2157 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$language.
PHPMailer\PHPMailer\PHPMailer::has8bitChars | ( | $text | ) |
Does a string contain any 8-bit chars (in any charset)?
string | $text |
Definition at line 3330 of file PHPMailer.php.
References $text.
Referenced by PHPMailer\PHPMailer\PHPMailer\addOrEnqueueAnAddress(), PHPMailer\PHPMailer\PHPMailer\createBody(), PHPMailer\PHPMailer\PHPMailer\encodeHeader(), PHPMailer\PHPMailer\PHPMailer\punyencodeAddress(), and PHPMailer\PHPMailer\PHPMailer\setFrom().
|
static |
Detect if a string contains a line longer than the maximum line length allowed by RFC 2822 section 2.1.1.
string | $str |
Definition at line 4722 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::hasMultiBytes | ( | $str | ) |
Check if a string contains multi-byte characters.
string | $str | multi-byte text to wrap encode |
Definition at line 3313 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\encodeHeader().
PHPMailer\PHPMailer\PHPMailer::headerLine | ( | $name, | |
$value | |||
) |
Format a header line.
string | $name | |
string | int | $value |
Definition at line 2929 of file PHPMailer.php.
References $name.
Referenced by PHPMailer\PHPMailer\PHPMailer\createBody(), PHPMailer\PHPMailer\PHPMailer\createHeader(), PHPMailer\PHPMailer\PHPMailer\getBoundary(), PHPMailer\PHPMailer\PHPMailer\getMailMIME(), and PHPMailer\PHPMailer\PHPMailer\preSend().
PHPMailer\PHPMailer\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 removed for license reasons in #232. Example usage:
string | $html | The HTML text to convert |
bool | callable | $advanced | Any boolean value to use the internal converter, or provide your own callable for custom conversion |
Definition at line 4120 of file PHPMailer.php.
References $html.
Referenced by PHPMailer\PHPMailer\PHPMailer\msgHTML().
|
static |
Tells whether IDNs (Internationalized Domain Names) are supported or not.
This requires the intl
and mbstring
PHP extensions.
true
if required functions for IDN support are present Definition at line 1376 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::inlineImageExists | ( | ) |
Check if an inline attachment is present.
Definition at line 3680 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$attachment, and attachment().
Referenced by PHPMailer\PHPMailer\PHPMailer\setMessageType().
PHPMailer\PHPMailer\PHPMailer::isError | ( | ) |
Check if an error occurred.
Definition at line 3939 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\attachAll(), and PHPMailer\PHPMailer\PHPMailer\createBody().
PHPMailer\PHPMailer\PHPMailer::isHTML | ( | $isHtml = true | ) |
Sets message type to HTML or plain.
bool | $isHtml | True for HTML mode |
Definition at line 940 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\msgHTML().
PHPMailer\PHPMailer\PHPMailer::isMail | ( | ) |
Send messages using PHP's mail() function.
Definition at line 960 of file PHPMailer.php.
|
staticprotected |
Check whether a file path is of a permitted type.
Used to reject URLs and phar files from functions that access local file paths, such as addAttachment.
string | $path | A relative or absolute path to a file |
Definition at line 1751 of file PHPMailer.php.
References $path.
PHPMailer\PHPMailer\PHPMailer::isQmail | ( | ) |
Send messages using qmail.
Definition at line 983 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::isSendmail | ( | ) |
Send messages using $Sendmail.
Definition at line 968 of file PHPMailer.php.
|
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.
string | $string | The string to be validated |
Definition at line 1717 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::isSMTP | ( | ) |
Send messages using SMTP.
Definition at line 952 of file PHPMailer.php.
|
static |
Validate whether a string contains a valid value to use as a hostname or IP address.
IPv6 addresses must include [], e.g. [::1]
, not just ::1
.
string | $host | The host name or IP address to check |
Definition at line 3878 of file PHPMailer.php.
|
protected |
Get an error message in the current language.
string | $key |
Definition at line 3913 of file PHPMailer.php.
References $key, and PHPMailer\PHPMailer\PHPMailer\setLanguage().
Referenced by PHPMailer\PHPMailer\PHPMailer\addAnAddress(), PHPMailer\PHPMailer\PHPMailer\addAttachment(), PHPMailer\PHPMailer\PHPMailer\addEmbeddedImage(), PHPMailer\PHPMailer\PHPMailer\addOrEnqueueAnAddress(), PHPMailer\PHPMailer\PHPMailer\addStringAttachment(), PHPMailer\PHPMailer\PHPMailer\addStringEmbeddedImage(), PHPMailer\PHPMailer\PHPMailer\createBody(), PHPMailer\PHPMailer\PHPMailer\DKIM_Sign(), PHPMailer\PHPMailer\PHPMailer\encodeFile(), PHPMailer\PHPMailer\PHPMailer\encodeString(), PHPMailer\PHPMailer\PHPMailer\mailSend(), PHPMailer\PHPMailer\PHPMailer\preSend(), PHPMailer\PHPMailer\PHPMailer\sendmailSend(), PHPMailer\PHPMailer\PHPMailer\set(), PHPMailer\PHPMailer\PHPMailer\setError(), PHPMailer\PHPMailer\PHPMailer\setFrom(), PHPMailer\PHPMailer\PHPMailer\smtpConnect(), and PHPMailer\PHPMailer\PHPMailer\smtpSend().
|
private |
Call mail() 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 | $to | To |
string | $subject | Subject |
string | $body | Message Body |
string | $header | Additional Header(s) |
string | null | $params | Params |
Definition at line 853 of file PHPMailer.php.
References $header, PHPMailer\PHPMailer\$params, $result, PHPMailer\PHPMailer\PHPMailer\$to, PHPMailer\PHPMailer\PHPMailer\encodeHeader(), Monolog\Handler\mail(), and PHPMailer\PHPMailer\PHPMailer\secureHeader().
Referenced by PHPMailer\PHPMailer\PHPMailer\mailSend().
|
protected |
Send mail using the PHP mail() function.
string | $header | The message headers |
string | $body | The message body |
Exception |
Definition at line 1768 of file PHPMailer.php.
References $header, PHPMailer\PHPMailer\$params, $result, PHPMailer\PHPMailer\PHPMailer\$to, PHPMailer\PHPMailer\PHPMailer\addrFormat(), PHPMailer\PHPMailer\PHPMailer\doCallback(), PHPMailer\PHPMailer\PHPMailer\lang(), and PHPMailer\PHPMailer\PHPMailer\mailPassthru().
Referenced by PHPMailer\PHPMailer\PHPMailer\postSend().
|
static |
Multi-byte-safe pathinfo replacement.
Drop-in replacement for pathinfo(), but multibyte- and cross-platform-safe.
string | $path | A filename or path, does not need to exist as a file |
int | string | $options | Either a PATHINFO_* constant, or a string name to return only the specified piece |
Definition at line 4295 of file PHPMailer.php.
References PHPMailer\PHPMailer\$options, $path, and $ret.
PHPMailer\PHPMailer\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) Converts data-uri images into embedded attachments. If you don't want to apply these transformations to your HTML, just set Body and AltBody directly.
string | $message | HTML message string |
string | $basedir | Absolute path to a base directory to prepend to relative paths to images |
bool | callable | $advanced | Whether to use the internal HTML to text converter or your own custom converter |
Exception |
Definition at line 4005 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$Body, $data, $filename, $message, $url, PHPMailer\PHPMailer\PHPMailer\addEmbeddedImage(), PHPMailer\PHPMailer\PHPMailer\addStringEmbeddedImage(), PHPMailer\PHPMailer\PHPMailer\alternativeExists(), PHPMailer\PHPMailer\PHPMailer\cidExists(), GuzzleHttp\Psr7\hash(), PHPMailer\PHPMailer\PHPMailer\html2text(), and PHPMailer\PHPMailer\PHPMailer\isHTML().
|
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.
string | $text | |
string | $breaktype | What kind of line break to use; defaults to static::$LE |
Definition at line 4379 of file PHPMailer.php.
References $text.
|
static |
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.
string | $addrstr | The address list string |
bool | $useimap | Whether to use the IMAP extension to parse the list |
Definition at line 1184 of file PHPMailer.php.
References $email, $list, and $name.
PHPMailer\PHPMailer\PHPMailer::postSend | ( | ) |
Actually send a message via the selected mechanism.
Exception |
Definition at line 1595 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\edebug(), PHPMailer\PHPMailer\PHPMailer\mailSend(), PHPMailer\PHPMailer\PHPMailer\sendmailSend(), PHPMailer\PHPMailer\PHPMailer\setError(), and PHPMailer\PHPMailer\PHPMailer\smtpSend().
Referenced by PHPMailer\PHPMailer\PHPMailer\send().
PHPMailer\PHPMailer\PHPMailer::preSend | ( | ) |
Prepare a message for sending.
Exception |
Definition at line 1459 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$MIMEHeader, PHPMailer\PHPMailer\$params, PHPMailer\PHPMailer\PHPMailer\addrAppend(), PHPMailer\PHPMailer\PHPMailer\alternativeExists(), PHPMailer\PHPMailer\PHPMailer\createBody(), PHPMailer\PHPMailer\PHPMailer\createHeader(), PHPMailer\PHPMailer\PHPMailer\DKIM_Add(), PHPMailer\PHPMailer\PHPMailer\edebug(), PHPMailer\PHPMailer\PHPMailer\encodeHeader(), PHPMailer\PHPMailer\PHPMailer\headerLine(), PHPMailer\PHPMailer\PHPMailer\lang(), PHP_EOL, PHPMailer\PHPMailer\PHPMailer\punyencodeAddress(), PHPMailer\PHPMailer\PHPMailer\secureHeader(), PHPMailer\PHPMailer\PHPMailer\setError(), and PHPMailer\PHPMailer\PHPMailer\setMessageType().
Referenced by PHPMailer\PHPMailer\PHPMailer\send().
PHPMailer\PHPMailer\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:
string | $address | The email address to convert |
Definition at line 1395 of file PHPMailer.php.
References $domain, and PHPMailer\PHPMailer\PHPMailer\has8bitChars().
Referenced by PHPMailer\PHPMailer\PHPMailer\preSend().
|
static |
If a string contains any "special" characters, double-quote the name, and escape any double quotes with a backslash.
string | $str |
Definition at line 4737 of file PHPMailer.php.
|
static |
PHPMailer\PHPMailer\PHPMailer::secureHeader | ( | $str | ) |
Strip newlines to prevent header injection.
string | $str |
Definition at line 4364 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\addrFormat(), PHPMailer\PHPMailer\PHPMailer\attachAll(), PHPMailer\PHPMailer\PHPMailer\createHeader(), PHPMailer\PHPMailer\PHPMailer\mailPassthru(), and PHPMailer\PHPMailer\PHPMailer\preSend().
PHPMailer\PHPMailer\PHPMailer::send | ( | ) |
Create a message and send it.
Uses the sending method specified by $Mailer.
Exception |
Definition at line 1433 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\postSend(), PHPMailer\PHPMailer\PHPMailer\preSend(), and PHPMailer\PHPMailer\PHPMailer\setError().
|
protected |
Send mail using the $Sendmail program.
string | $header | The message headers |
string | $body | The message body |
Exception |
Definition at line 1638 of file PHPMailer.php.
References $header, $result, PHPMailer\PHPMailer\PHPMailer\doCallback(), and PHPMailer\PHPMailer\PHPMailer\lang().
Referenced by PHPMailer\PHPMailer\PHPMailer\postSend().
|
protected |
Get the server hostname.
Returns 'localhost.localdomain' if unknown.
Definition at line 3851 of file PHPMailer.php.
References $_SERVER, PHPMailer\PHPMailer\PHPMailer\$Hostname, and $result.
Referenced by PHPMailer\PHPMailer\PHPMailer\createHeader(), and PHPMailer\PHPMailer\PHPMailer\smtpConnect().
PHPMailer\PHPMailer\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', static::ENCRYPTION_STARTTLS);` is the same as: $mail->SMTPSecure = static::ENCRYPTION_STARTTLS;
.
string | $name | The property name to set |
mixed | $value | The value to set the property to |
Definition at line 4345 of file PHPMailer.php.
References $name, PHPMailer\PHPMailer\PHPMailer\lang(), and PHPMailer\PHPMailer\PHPMailer\setError().
|
protected |
Add an error message to the error container.
string | $msg |
Definition at line 3810 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$error_count, and PHPMailer\PHPMailer\PHPMailer\lang().
Referenced by PHPMailer\PHPMailer\PHPMailer\addAnAddress(), PHPMailer\PHPMailer\PHPMailer\addAttachment(), PHPMailer\PHPMailer\PHPMailer\addEmbeddedImage(), PHPMailer\PHPMailer\PHPMailer\addOrEnqueueAnAddress(), PHPMailer\PHPMailer\PHPMailer\addStringAttachment(), PHPMailer\PHPMailer\PHPMailer\addStringEmbeddedImage(), PHPMailer\PHPMailer\PHPMailer\encodeFile(), PHPMailer\PHPMailer\PHPMailer\encodeString(), PHPMailer\PHPMailer\PHPMailer\postSend(), PHPMailer\PHPMailer\PHPMailer\preSend(), PHPMailer\PHPMailer\PHPMailer\send(), PHPMailer\PHPMailer\PHPMailer\set(), PHPMailer\PHPMailer\PHPMailer\setFrom(), and PHPMailer\PHPMailer\PHPMailer\smtpSend().
PHPMailer\PHPMailer\PHPMailer::setFrom | ( | $address, | |
$name = '' , |
|||
$auto = true |
|||
) |
Set the From and FromName properties.
string | $address | |
string | $name | |
bool | $auto | Whether to also set the Sender address, defaults to true |
Exception |
Definition at line 1241 of file PHPMailer.php.
References $name, PHPMailer\PHPMailer\PHPMailer\edebug(), PHPMailer\PHPMailer\PHPMailer\has8bitChars(), PHPMailer\PHPMailer\PHPMailer\lang(), and PHPMailer\PHPMailer\PHPMailer\setError().
PHPMailer\PHPMailer\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.
string | $langcode | ISO 639-1 2-character language code (e.g. French is "fr") |
string | $lang_path | Path to the language file directory, with trailing separator (slash) |
Definition at line 2084 of file PHPMailer.php.
References $PHPMAILER_LANG.
Referenced by PHPMailer\PHPMailer\PHPMailer\lang().
|
staticprotected |
Set the line break format string, e.g.
"\r\n".
string | $le |
Definition at line 4421 of file PHPMailer.php.
|
protected |
Set the message type.
PHPMailer only supports some preset message types, not arbitrary MIME structures.
Definition at line 2902 of file PHPMailer.php.
References $type, PHPMailer\PHPMailer\PHPMailer\alternativeExists(), PHPMailer\PHPMailer\PHPMailer\attachmentExists(), and PHPMailer\PHPMailer\PHPMailer\inlineImageExists().
Referenced by PHPMailer\PHPMailer\PHPMailer\preSend().
PHPMailer\PHPMailer\PHPMailer::setOAuth | ( | OAuth | $oauth | ) |
Set an OAuth instance.
Definition at line 4836 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$oauth.
PHPMailer\PHPMailer\PHPMailer::setSMTPInstance | ( | SMTP | $smtp | ) |
Provide an instance to use for SMTP operations.
Definition at line 1835 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$smtp.
PHPMailer\PHPMailer\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.
Definition at line 2357 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\wrapText().
Referenced by PHPMailer\PHPMailer\PHPMailer\createBody().
PHPMailer\PHPMailer\PHPMailer::sign | ( | $cert_filename, | |
$key_filename, | |||
$key_pass, | |||
$extracerts_filename = '' |
|||
) |
Set the public and private key files and password for S/MIME signing.
string | $cert_filename | |
string | $key_filename | |
string | $key_pass | Password for private key |
string | $extracerts_filename | Optional path to chain certificate |
Definition at line 4434 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::smtpClose | ( | ) |
Close the active SMTP session if one exists.
Definition at line 2066 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\__destruct().
PHPMailer\PHPMailer\PHPMailer::smtpConnect | ( | $options = null | ) |
Initiate a connection to an SMTP server.
Returns false if the operation failed.
array | $options | An array of options compatible with stream_context_create() |
Exception |
Definition at line 1942 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$Helo, PHPMailer\PHPMailer\$options, PHPMailer\PHPMailer\PHPMailer\$Port, PHPMailer\PHPMailer\PHPMailer\$SMTPOptions, PHPMailer\PHPMailer\PHPMailer\$SMTPSecure, PHPMailer\PHPMailer\PHPMailer\edebug(), PHPMailer\PHPMailer\PHPMailer\getSMTPInstance(), PHPMailer\PHPMailer\PHPMailer\lang(), and PHPMailer\PHPMailer\PHPMailer\serverHostname().
Referenced by PHPMailer\PHPMailer\PHPMailer\smtpSend().
|
protected |
Send mail via SMTP.
Returns false if there is a bad MAIL FROM, RCPT, or DATA input.
string | $header | The message headers |
string | $body | The message body |
Exception |
Definition at line 1857 of file PHPMailer.php.
References PHPMailer\PHPMailer\PHPMailer\$From, $header, PHPMailer\PHPMailer\PHPMailer\$Sender, PHPMailer\PHPMailer\PHPMailer\$to, PHPMailer\PHPMailer\PHPMailer\doCallback(), PHPMailer\PHPMailer\PHPMailer\lang(), PHPMailer\PHPMailer\PHPMailer\setError(), and PHPMailer\PHPMailer\PHPMailer\smtpConnect().
Referenced by PHPMailer\PHPMailer\PHPMailer\postSend().
|
static |
Remove trailing breaks from a string.
string | $text |
Definition at line 4401 of file PHPMailer.php.
References $text.
PHPMailer\PHPMailer\PHPMailer::textLine | ( | $value | ) |
Return a formatted mail line.
string | $value |
Definition at line 2941 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\createBody(), PHPMailer\PHPMailer\PHPMailer\getBoundary(), and PHPMailer\PHPMailer\PHPMailer\getMailMIME().
PHPMailer\PHPMailer\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.
string | $encodedText | utf-8 QP text |
int | $maxLength | Find the last character boundary prior to this length |
Definition at line 2313 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\wrapText().
|
static |
Check that a string looks like an email address.
Validation patterns supported:
auto
Pick best pattern automatically;pcre8
Use the squiloople.com pattern, requires PCRE > 8.0;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:You can also set the PHPMailer::$validator static to a callable, allowing built-in methods to use your validator.
string | $address | The email address to check |
string | callable | $patternselect | Which pattern to use |
Definition at line 1310 of file PHPMailer.php.
|
protected |
Validate encodings.
string | $encoding |
Definition at line 3642 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\addAttachment(), PHPMailer\PHPMailer\PHPMailer\addEmbeddedImage(), PHPMailer\PHPMailer\PHPMailer\addStringAttachment(), and PHPMailer\PHPMailer\PHPMailer\addStringEmbeddedImage().
PHPMailer\PHPMailer\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.
string | $message | The message to wrap |
int | $length | The line length to wrap to |
bool | $qp_mode | Whether to run in Quoted-Printable mode |
Definition at line 2213 of file PHPMailer.php.
References $message, and PHPMailer\PHPMailer\PHPMailer\utf8CharBoundary().
Referenced by PHPMailer\PHPMailer\PHPMailer\encodeHeader(), and PHPMailer\PHPMailer\PHPMailer\setWordWrap().
PHPMailer\PHPMailer\PHPMailer::$action_function = '' |
Definition at line 557 of file PHPMailer.php.
|
protected |
Definition at line 623 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\getAllRecipientAddresses().
PHPMailer\PHPMailer\PHPMailer::$AllowEmpty = false |
Definition at line 470 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$AltBody = '' |
Definition at line 147 of file PHPMailer.php.
|
protected |
PHPMailer\PHPMailer\PHPMailer::$AuthType = '' |
Definition at line 357 of file PHPMailer.php.
|
protected |
Definition at line 604 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\clearBCCs(), PHPMailer\PHPMailer\PHPMailer\doCallback(), and PHPMailer\PHPMailer\PHPMailer\getBccAddresses().
PHPMailer\PHPMailer\PHPMailer::$Body = '' |
Definition at line 137 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\msgHTML().
|
protected |
Definition at line 684 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\attachAll(), PHPMailer\PHPMailer\PHPMailer\endBoundary(), and PHPMailer\PHPMailer\PHPMailer\getBoundary().
|
protected |
Definition at line 597 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\clearCCs(), PHPMailer\PHPMailer\PHPMailer\doCallback(), and PHPMailer\PHPMailer\PHPMailer\getCcAddresses().
PHPMailer\PHPMailer\PHPMailer::$CharSet = self::CHARSET_ISO88591 |
Definition at line 76 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\createBody(), PHPMailer\PHPMailer\PHPMailer\encodeHeader(), and PHPMailer\PHPMailer\PHPMailer\getBoundary().
PHPMailer\PHPMailer\PHPMailer::$ConfirmReadingTo = '' |
Definition at line 236 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$ContentType = self::CONTENT_TYPE_PLAINTEXT |
Definition at line 83 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\getBoundary().
|
protected |
Definition at line 663 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\getCustomHeaders().
PHPMailer\PHPMailer\PHPMailer::$Debugoutput = 'echo' |
Definition at line 427 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$DKIM_copyHeaderFields = true |
Definition at line 509 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$DKIM_domain = '' |
Definition at line 502 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$DKIM_extraHeaders = [] |
Definition at line 518 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$DKIM_identity = '' |
Definition at line 485 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$DKIM_passphrase = '' |
Definition at line 493 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$DKIM_private = '' |
Definition at line 525 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$DKIM_private_string = '' |
Definition at line 534 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$DKIM_selector = '' |
Definition at line 477 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$do_verp = false |
Definition at line 463 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$dsn = '' |
Comma separated list of DSN notifications 'NEVER' under no circumstances a DSN must be returned to the sender.
If you use NEVER all other notifications will be ignored. 'SUCCESS' will notify you when your mail has arrived at its destination. 'FAILURE' will arrive if an error occurred during delivery. 'DELAY' will notify you if there is an unusual delay in delivery, but the actual delivery's outcome (success or failure) is not yet decided.
Definition at line 385 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$Encoding = self::ENCODING_8BIT |
Definition at line 91 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\createBody(), and PHPMailer\PHPMailer\PHPMailer\getBoundary().
|
protected |
Definition at line 698 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\setError().
PHPMailer\PHPMailer\PHPMailer::$ErrorInfo = '' |
Definition at line 98 of file PHPMailer.php.
|
protected |
Definition at line 734 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\__construct().
PHPMailer\PHPMailer\PHPMailer::$From = 'root@localhost' |
Definition at line 105 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\smtpSend().
PHPMailer\PHPMailer\PHPMailer::$FromName = 'Root User' |
Definition at line 112 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$Helo = '' |
Definition at line 300 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\smtpConnect().
PHPMailer\PHPMailer\PHPMailer::$Host = 'localhost' |
Definition at line 282 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$Hostname = '' |
Definition at line 248 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\serverHostname().
PHPMailer\PHPMailer\PHPMailer::$Ical = '' |
Definition at line 159 of file PHPMailer.php.
|
staticprotected |
Definition at line 166 of file PHPMailer.php.
|
protected |
Definition at line 691 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\getTranslations().
|
protected |
Definition at line 670 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\getLastMessageID().
|
staticprotected |
Definition at line 787 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$Mailer = 'mail' |
Definition at line 214 of file PHPMailer.php.
|
protected |
Definition at line 196 of file PHPMailer.php.
|
protected |
Definition at line 677 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$MessageDate = '' |
Definition at line 268 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$MessageID = '' |
Definition at line 260 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\createHeader().
|
protected |
Definition at line 182 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\getSentMIMEMessage().
|
protected |
Definition at line 189 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\preSend().
|
protected |
Definition at line 364 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\getOAuth(), and PHPMailer\PHPMailer\PHPMailer\setOAuth().
PHPMailer\PHPMailer\PHPMailer::$Password = '' |
Definition at line 349 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$Port = 25 |
Definition at line 289 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\smtpConnect().
PHPMailer\PHPMailer\PHPMailer::$Priority |
Definition at line 69 of file PHPMailer.php.
|
protected |
Definition at line 638 of file PHPMailer.php.
|
protected |
Definition at line 611 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\getReplyToAddresses().
|
protected |
Definition at line 649 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$Sender = '' |
Definition at line 122 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\smtpSend().
PHPMailer\PHPMailer\PHPMailer::$Sendmail = '/usr/sbin/sendmail' |
Definition at line 221 of file PHPMailer.php.
|
protected |
Definition at line 705 of file PHPMailer.php.
|
protected |
Definition at line 719 of file PHPMailer.php.
|
protected |
Definition at line 712 of file PHPMailer.php.
|
protected |
Definition at line 727 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$SingleTo = false |
Definition at line 445 of file PHPMailer.php.
|
protected |
Definition at line 452 of file PHPMailer.php.
|
protected |
Definition at line 583 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\getSMTPInstance(), and PHPMailer\PHPMailer\PHPMailer\setSMTPInstance().
PHPMailer\PHPMailer\PHPMailer::$SMTPAuth = false |
Definition at line 328 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$SMTPAutoTLS = true |
Definition at line 317 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$SMTPDebug = 0 |
Definition at line 401 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$SMTPKeepAlive = false |
Definition at line 436 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$SMTPOptions = [] |
Definition at line 335 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\smtpConnect().
PHPMailer\PHPMailer\PHPMailer::$SMTPSecure = '' |
Definition at line 308 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\smtpConnect().
PHPMailer\PHPMailer\PHPMailer::$Subject = '' |
Definition at line 129 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$Timeout = 300 |
Definition at line 372 of file PHPMailer.php.
|
protected |
Definition at line 590 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\clearAddresses(), PHPMailer\PHPMailer\PHPMailer\doCallback(), PHPMailer\PHPMailer\PHPMailer\getToAddresses(), PHPMailer\PHPMailer\PHPMailer\mailPassthru(), PHPMailer\PHPMailer\PHPMailer\mailSend(), and PHPMailer\PHPMailer\PHPMailer\smtpSend().
|
protected |
Definition at line 741 of file PHPMailer.php.
Referenced by PHPMailer\PHPMailer\PHPMailer\createBody().
PHPMailer\PHPMailer\PHPMailer::$Username = '' |
Definition at line 342 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$UseSendmailOptions = true |
Definition at line 229 of file PHPMailer.php.
|
static |
Definition at line 576 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$WordWrap = 0 |
Definition at line 206 of file PHPMailer.php.
PHPMailer\PHPMailer\PHPMailer::$XMailer = '' |
Definition at line 565 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::CHARSET_ASCII = 'us-ascii' |
Definition at line 33 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::CHARSET_ISO88591 = 'iso-8859-1' |
Definition at line 34 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::CHARSET_UTF8 = 'utf-8' |
Definition at line 35 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::CONTENT_TYPE_MULTIPART_ALTERNATIVE = 'multipart/alternative' |
Definition at line 40 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::CONTENT_TYPE_MULTIPART_MIXED = 'multipart/mixed' |
Definition at line 41 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::CONTENT_TYPE_MULTIPART_RELATED = 'multipart/related' |
Definition at line 42 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::CONTENT_TYPE_PLAINTEXT = 'text/plain' |
Definition at line 37 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::CONTENT_TYPE_TEXT_CALENDAR = 'text/calendar' |
Definition at line 38 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::CONTENT_TYPE_TEXT_HTML = 'text/html' |
Definition at line 39 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::CRLF = "\r\n" |
The SMTP standard CRLF line break.
If you want to change line break format, change static::$LE, not this.
Definition at line 775 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::ENCODING_7BIT = '7bit' |
Definition at line 44 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::ENCODING_8BIT = '8bit' |
Definition at line 45 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::ENCODING_BASE64 = 'base64' |
Definition at line 46 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::ENCODING_BINARY = 'binary' |
Definition at line 47 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::ENCODING_QUOTED_PRINTABLE = 'quoted-printable' |
Definition at line 48 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::ENCRYPTION_SMTPS = 'ssl' |
Definition at line 51 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::ENCRYPTION_STARTTLS = 'tls' |
Definition at line 50 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::FWS = ' ' |
"Folding White Space" a white space string used for line folding.
Definition at line 780 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::ICAL_METHOD_ADD = 'ADD' |
Definition at line 56 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::ICAL_METHOD_CANCEL = 'CANCEL' |
Definition at line 57 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::ICAL_METHOD_COUNTER = 'COUNTER' |
Definition at line 59 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::ICAL_METHOD_DECLINECOUNTER = 'DECLINECOUNTER' |
Definition at line 60 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::ICAL_METHOD_PUBLISH = 'PUBLISH' |
Definition at line 54 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::ICAL_METHOD_REFRESH = 'REFRESH' |
Definition at line 58 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::ICAL_METHOD_REPLY = 'REPLY' |
Definition at line 55 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::ICAL_METHOD_REQUEST = 'REQUEST' |
Definition at line 53 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::MAIL_MAX_LINE_LENGTH = 63 |
Definition at line 797 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::MAX_LINE_LENGTH = 998 |
Definition at line 804 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::STD_LINE_LENGTH = 76 |
Definition at line 814 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::STOP_CONTINUE = 1 |
Definition at line 762 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::STOP_CRITICAL = 2 |
Definition at line 769 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::STOP_MESSAGE = 0 |
Definition at line 755 of file PHPMailer.php.
const PHPMailer\PHPMailer\PHPMailer::VERSION = '6.1.6' |
Definition at line 748 of file PHPMailer.php.