\PHPMailer
PHPMailer - PHP email creation and transport class.
- Author: Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
Synopsis
class PHPMailer
{
- // constants
- const STOP_MESSAGE = 0;
- const STOP_CONTINUE = 1;
- const STOP_CRITICAL = 2;
- const CRLF = "\r\n";
- const MAX_LINE_LENGTH = 998;
- // members
- public string $Version = '5.2.14';
- public $Priority = NULL;
- public string $CharSet = 'iso-8859-1';
- public string $ContentType = 'text/plain';
- public string $Encoding = '8bit';
- public string $ErrorInfo = '';
- public string $From = 'root@localhost';
- public string $FromName = 'Root User';
- public string $Sender = '';
- public string $ReturnPath = '';
- public string $Subject = '';
- public string $Body = '';
- public string $AltBody = '';
- public string $Ical = '';
- protected string $MIMEBody = '';
- protected string $MIMEHeader = '';
- protected string $mailHeader = '';
- public integer $WordWrap = 0;
- public string $Mailer = 'mail';
- public string $Sendmail = '/usr/sbin/sendmail';
- public boolean $UseSendmailOptions = true;
- public string $PluginDir = '';
- public string $ConfirmReadingTo = '';
- public string $Hostname = '';
- public string $MessageID = '';
- public string $MessageDate = '';
- public string $Host = 'localhost';
- public integer $Port = 25;
- public string $Helo = '';
- public string $SMTPSecure = '';
- public boolean $SMTPAutoTLS = true;
- public boolean $SMTPAuth = false;
- public array $SMTPOptions = ;
- public string $Username = '';
- public string $Password = '';
- public string $AuthType = '';
- public string $Realm = '';
- public string $Workstation = '';
- public integer $Timeout = 300;
- public integer $SMTPDebug = 0;
- public string|callable $Debugoutput = 'echo';
- public boolean $SMTPKeepAlive = false;
- public boolean $SingleTo = false;
- public array $SingleToArray = ;
- public boolean $do_verp = false;
- public boolean $AllowEmpty = false;
- public string $LE = "\n";
- public string $DKIM_selector = '';
- public string $DKIM_identity = '';
- public string $DKIM_passphrase = '';
- public string $DKIM_domain = '';
- public string $DKIM_private = '';
- public string $action_function = '';
- public string $XMailer = '';
- protected SMTP $smtp = NULL;
- protected array $to = ;
- protected array $cc = ;
- protected array $bcc = ;
- protected array $ReplyTo = ;
- protected array $all_recipients = ;
- protected array $RecipientsQueue = ;
- protected array $ReplyToQueue = ;
- protected array $attachment = ;
- protected array $CustomHeader = ;
- protected string $lastMessageID = '';
- protected string $message_type = '';
- protected array $boundary = ;
- protected array $language = ;
- protected integer $error_count = 0;
- protected string $sign_cert_file = '';
- protected string $sign_key_file = '';
- protected string $sign_extracerts_file = '';
- protected string $sign_key_pass = '';
- protected boolean $exceptions = false;
- protected string $uniqueid = '';
- // methods
- public void __construct()
- public void __destruct()
- private boolean mailPassthru()
- protected void edebug()
- public void isHTML()
- public void isSMTP()
- public void isMail()
- public void isSendmail()
- public void isQmail()
- public boolean addAddress()
- public boolean addCC()
- public boolean addBCC()
- public boolean addReplyTo()
- protected boolean addOrEnqueueAnAddress()
- protected boolean addAnAddress()
- public array parseAddresses()
- public boolean setFrom()
- public string getLastMessageID()
- public static boolean validateAddress()
- public bool idnSupported()
- public string punyencodeAddress()
- public boolean send()
- public boolean preSend()
- public boolean postSend()
- protected boolean sendmailSend()
- protected boolean mailSend()
- public SMTP getSMTPInstance()
- protected boolean smtpSend()
- public boolean smtpConnect()
- public void smtpClose()
- public boolean setLanguage()
- public array getTranslations()
- public string addrAppend()
- public string addrFormat()
- public string wrapText()
- public integer utf8CharBoundary()
- public void setWordWrap()
- public string createHeader()
- public string getMailMIME()
- public string getSentMIMEMessage()
- public string createBody()
- protected string getBoundary()
- protected string endBoundary()
- protected void setMessageType()
- public string headerLine()
- public string textLine()
- public boolean addAttachment()
- public array getAttachments()
- protected string attachAll()
- protected string encodeFile()
- public string encodeString()
- public string encodeHeader()
- public boolean hasMultiBytes()
- public boolean has8bitChars()
- public string base64EncodeWrapMB()
- public string encodeQP()
- public string encodeQPphp()
- public string encodeQ()
- public void addStringAttachment()
- public boolean addEmbeddedImage()
- public boolean addStringEmbeddedImage()
- public boolean inlineImageExists()
- public boolean attachmentExists()
- public boolean alternativeExists()
- public void clearQueuedAddresses()
- public void clearAddresses()
- public void clearCCs()
- public void clearBCCs()
- public void clearReplyTos()
- public void clearAllRecipients()
- public void clearAttachments()
- public void clearCustomHeaders()
- protected void setError()
- public static string rfcDate()
- protected string serverHostname()
- protected string lang()
- public boolean isError()
- public string fixEOL()
- public void addCustomHeader()
- public array getCustomHeaders()
- public string msgHTML()
- public string html2text()
- public static string _mime_types()
- public static string filenameToType()
- public static string|array mb_pathinfo()
- public boolean set()
- public string secureHeader()
- public static string normalizeBreaks()
- public void sign()
- public string DKIM_QP()
- public string DKIM_Sign()
- public string DKIM_HeaderC()
- public string DKIM_BodyC()
- public string DKIM_Add()
- public static boolean hasLineLongerThanMax()
- public array getToAddresses()
- public array getCcAddresses()
- public array getBccAddresses()
- public array getReplyToAddresses()
- public array getAllRecipientAddresses()
- protected void doCallback()
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
435 | ShortVariable | Avoid variables with short names like $LE. Configured minimum length is 3. |
518 | ShortVariable | Avoid variables with short names like $to. Configured minimum length is 3. |
526 | ShortVariable | Avoid variables with short names like $cc. Configured minimum length is 3. |
751 | ShortVariable | Avoid variables with short names like $to. Configured minimum length is 3. |
1059 - 1105 | CyclomaticComplexity | The method parseAddresses() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10. |
1172 - 1228 | CyclomaticComplexity | The method validateAddress() has a Cyclomatic Complexity of 17. The configured cyclomatic complexity threshold is 10. |
1302 - 1385 | CyclomaticComplexity | The method preSend() has a Cyclomatic Complexity of 18. The configured cyclomatic complexity threshold is 10. |
1302 - 1385 | NPathComplexity | The method preSend() has an NPath complexity of 2522. The configured NPath complexity threshold is 200. |
1436 - 1480 | CyclomaticComplexity | The method sendmailSend() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10. |
1494 - 1530 | CyclomaticComplexity | The method mailSend() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10. |
1500 | ShortVariable | Avoid variables with short names like $to. Configured minimum length is 3. |
1561 - 1619 | CyclomaticComplexity | The method smtpSend() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. |
1561 - 1619 | NPathComplexity | The method smtpSend() has an NPath complexity of 576. The configured NPath complexity threshold is 200. |
1632 - 1731 | CyclomaticComplexity | The method smtpConnect() has a Cyclomatic Complexity of 27. The configured cyclomatic complexity threshold is 10. |
1632 - 1731 | NPathComplexity | The method smtpConnect() has an NPath complexity of 132492. The configured NPath complexity threshold is 200. |
1632 - 1731 | ExcessiveMethodLength | The method smtpConnect() has 100 lines of code. Current threshold is set to 100. Avoid really long methods. |
1869 - 1957 | CyclomaticComplexity | The method wrapText() has a Cyclomatic Complexity of 21. The configured cyclomatic complexity threshold is 10. |
1869 - 1957 | NPathComplexity | The method wrapText() has an NPath complexity of 444. The configured NPath complexity threshold is 200. |
2042 - 2126 | CyclomaticComplexity | The method createHeader() has a Cyclomatic Complexity of 22. The configured cyclomatic complexity threshold is 10. |
2042 - 2126 | NPathComplexity | The method createHeader() has an NPath complexity of 53760. The configured NPath complexity threshold is 200. |
2134 - 2179 | CyclomaticComplexity | The method getMailMIME() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. |
2203 - 2394 | CyclomaticComplexity | The method createBody() has a Cyclomatic Complexity of 25. The configured cyclomatic complexity threshold is 10. |
2203 - 2394 | NPathComplexity | The method createBody() has an NPath complexity of 19440. The configured NPath complexity threshold is 200. |
2203 - 2394 | ExcessiveMethodLength | The method createBody() has 192 lines of code. Current threshold is set to 100. Avoid really long methods. |
2567 - 2658 | CyclomaticComplexity | The method attachAll() has a Cyclomatic Complexity of 16. The configured cyclomatic complexity threshold is 10. |
2567 - 2658 | NPathComplexity | The method attachAll() has an NPath complexity of 1538. The configured NPath complexity threshold is 200. |
2753 - 2811 | CyclomaticComplexity | The method encodeHeader() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10. |
2934 | UnusedFormalParameter | Avoid unused parameters such as '$space_conv'. |
3450 - 3496 | CyclomaticComplexity | The method msgHTML() has a Cyclomatic Complexity of 15. The configured cyclomatic complexity threshold is 10. |
3539 - 3645 | ExcessiveMethodLength | The method _mime_types() has 107 lines of code. Current threshold is set to 100. Avoid really long methods. |
3683 - 3722 | CyclomaticComplexity | The method mb_pathinfo() has a Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10. |
3936 | ShortVariable | Avoid variables with short names like $to. Configured minimum length is 3. |
4037 | ShortVariable | Avoid variables with short names like $to. Configured minimum length is 3. |
4037 | ShortVariable | Avoid variables with short names like $cc. Configured minimum length is 3. |
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
802 | 134 | warning | Line exceeds 120 characters; contains 134 characters |
1121 | 61 | warning | Line exceeds 120 characters; contains 125 characters |
1122 | 176 | warning | Line exceeds 120 characters; contains 176 characters |
1209 | 837 | warning | Line exceeds 120 characters; contains 837 characters |
1212 | 923 | warning | Line exceeds 120 characters; contains 923 characters |
1219 | 201 | warning | Line exceeds 120 characters; contains 201 characters |
1223 | 128 | warning | Line exceeds 120 characters; contains 128 characters |
1264 | 157 | warning | Line exceeds 120 characters; contains 157 characters |
1369 | 130 | warning | Line exceeds 120 characters; contains 130 characters |
1373 | 147 | warning | Line exceeds 120 characters; contains 147 characters |
1374 | 161 | warning | Line exceeds 120 characters; contains 161 characters |
1375 | 138 | warning | Line exceeds 120 characters; contains 138 characters |
1711 | 143 | warning | Line exceeds 120 characters; contains 143 characters |
1850 | 125 | warning | Line exceeds 120 characters; contains 125 characters |
2081 | 125 | warning | Line exceeds 120 characters; contains 125 characters |
2104 | 130 | warning | Line exceeds 120 characters; contains 130 characters |
2606 | 138 | warning | Line exceeds 120 characters; contains 138 characters |
2626 | 138 | warning | Line exceeds 120 characters; contains 138 characters |
2629 | 140 | warning | Line exceeds 120 characters; contains 140 characters |
2931 | 33 | error | The first parameter of a multi-line function declaration must be on the line after the opening bracket |
2931 | 42 | error | Multi-line function declarations must define one parameter per line |
2931 | 58 | error | Multi-line function declarations must define one parameter per line |
2932 | 1 | error | Multi-line function declaration not indented correctly; expected 8 spaces but found 0 |
2933 | 1 | error | Multi-line function declaration not indented correctly; expected 8 spaces but found 0 |
2934 | 1 | error | Multi-line function declaration not indented correctly; expected 8 spaces but found 4 |
2934 | 24 | error | The closing parenthesis of a multi-line function declaration must be on a new line |
2935 | 5 | error | The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line |
3012 | 122 | warning | Line exceeds 120 characters; contains 122 characters |
3105 | 128 | warning | Line exceeds 120 characters; contains 128 characters |
3465 | 127 | warning | Line exceeds 120 characters; contains 127 characters |
3482 | 190 | warning | Line exceeds 120 characters; contains 190 characters |
3483 | 182 | warning | Line exceeds 120 characters; contains 182 characters |
3493 | 129 | warning | Line exceeds 120 characters; contains 129 characters |
3526 | 155 | warning | Line exceeds 120 characters; contains 155 characters |
3539 | 19 | warning | Method name "_mime_types" should not be prefixed with an underscore to indicate visibility |
3539 | 19 | error | Method name "PHPMailer::_mime_types" is not in camel caps format |
3683 | 19 | error | Method name "PHPMailer::mb_pathinfo" is not in camel caps format |
3810 | 12 | error | Method name "PHPMailer::DKIM_QP" is not in camel caps format |
3832 | 12 | error | Method name "PHPMailer::DKIM_Sign" is not in camel caps format |
3860 | 12 | error | Method name "PHPMailer::DKIM_HeaderC" is not in camel caps format |
3882 | 12 | error | Method name "PHPMailer::DKIM_BodyC" is not in camel caps format |
3909 | 12 | error | Method name "PHPMailer::DKIM_Add" is not in camel caps format |
3937 | 78 | warning | Line exceeds 120 characters; contains 124 characters |
3946 | 392 | warning | Line exceeds 120 characters; contains 392 characters |
3947 | 122 | warning | Line exceeds 120 characters; contains 122 characters |
Tasks
Line | Task |
---|---|
1239 | Write our own "idn_to_ascii" function for PHP <= 5.2. |
Constants
Name | Value |
---|---|
STOP_MESSAGE | 0 |
STOP_CONTINUE | 1 |
STOP_CRITICAL | 2 |
CRLF | "\r\n" |
MAX_LINE_LENGTH | 998 |
Members
protected
- $CustomHeader
—
array
The array of custom headers. - $MIMEBody
—
string
The complete compiled MIME message body. - $MIMEHeader
—
string
The complete compiled MIME message headers. - $RecipientsQueue
—
array
An array of names and addresses queued for validation. - $ReplyTo
—
array
The array of reply-to names and addresses. - $ReplyToQueue
—
array
An array of reply-to names and addresses queued for validation. - $all_recipients
—
array
An array of all kinds of addresses. - $attachment
—
array
The array of attachments. - $bcc
—
array
The array of 'bcc' names and addresses. - $boundary
—
array
The array of MIME boundary strings. - $cc
—
array
The array of 'cc' names and addresses. - $error_count
—
integer
The number of errors encountered. - $exceptions
—
boolean
Whether to throw exceptions for errors. - $language
—
array
The array of available languages. - $lastMessageID
—
string
The most recent Message-ID (including angular brackets). - $mailHeader
—
string
Extra headers that createHeader() doesn't fold in. - $message_type
—
string
The message's MIME type. - $sign_cert_file
—
string
The S/MIME certificate file path. - $sign_extracerts_file
—
string
The optional S/MIME extra certificates ("CA Chain") file path. - $sign_key_file
—
string
The S/MIME key file path. - $sign_key_pass
—
string
The S/MIME password for the key. - $smtp
—
SMTP
An instance of the SMTP sender class. - $to
—
array
The array of 'to' names and addresses. - $uniqueid
—
string
Unique ID used for message ID and boundaries.
public
- $AllowEmpty
—
boolean
Whether to allow sending messages with an empty body. - $AltBody
—
string
The plain-text message body. - $AuthType
—
string
SMTP auth type. - $Body
—
string
An HTML or plain text message body. - $CharSet
—
string
The character set of the message. - $ConfirmReadingTo
—
string
The email address that a reading confirmation should be sent to, also known as read receipt. - $ContentType
—
string
The MIME Content-type of the message. - $DKIM_domain
—
string
DKIM signing domain name. - $DKIM_identity
—
string
DKIM Identity. - $DKIM_passphrase
—
string
DKIM passphrase. - $DKIM_private
—
string
DKIM private key file path. - $DKIM_selector
—
string
DKIM selector. - $Debugoutput
—
string|callable
How to handle debug output. - $Encoding
—
string
The message encoding. - $ErrorInfo
—
string
Holds the most recent mailer error message. - $From
—
string
The From email address for the message. - $FromName
—
string
The From name of the message. - $Helo
—
string
The SMTP HELO of the message. - $Host
—
string
SMTP hosts. - $Hostname
—
string
The hostname to use in the Message-ID header and as default HELO string. - $Ical
—
string
An iCal message part body. - $LE
—
string
The default line ending. - $Mailer
—
string
Which method to use to send mail. - $MessageDate
—
string
The message Date to be used in the Date header. - $MessageID
—
string
An ID to be used in the Message-ID header. - $Password
—
string
SMTP password. - $PluginDir
—
string
Path to PHPMailer plugins. - $Port
—
integer
The default SMTP server port. - $Priority
—
integer
Email priority. - $Realm
—
string
SMTP realm. - $ReturnPath
—
string
The Return-Path of the message. - $SMTPAuth
—
boolean
Whether to use SMTP authentication. - $SMTPAutoTLS
—
boolean
Whether to enable TLS encryption automatically if a server supports it, even if `SMTPSecure` is not set to 'tls'. - $SMTPDebug
—
integer
SMTP class debug output mode. - $SMTPKeepAlive
—
boolean
Whether to keep SMTP connection open after each message. - $SMTPOptions
—
array
Options array passed to stream_context_create when connecting via SMTP. - $SMTPSecure
—
string
What kind of encryption to use on the SMTP connection. - $Sender
—
string
The Sender email (Return-Path) of the message. - $Sendmail
—
string
The path to the sendmail program. - $SingleTo
—
boolean
Whether to split multiple to addresses into multiple messages or send them all in one message. - $SingleToArray
—
array
Storage for addresses when SingleTo is enabled. - $Subject
—
string
The Subject of the message. - $Timeout
—
integer
The SMTP server timeout in seconds. - $UseSendmailOptions
—
boolean
Whether mail() uses a fully sendmail-compatible MTA. - $Username
—
string
SMTP username. - $Version
—
string
The PHPMailer Version number. - $WordWrap
—
integer
Word-wrap the message body to this number of chars. - $Workstation
—
string
SMTP workstation. - $XMailer
—
string
What to put in the X-Mailer header. - $action_function
—
string
Callback Action function name. - $do_verp
—
boolean
Whether to generate VERP addresses on send.
Methods
private
- mailPassthru() — Call mail() in a safe_mode-aware fashion.
protected
- addAnAddress() — Add an address to one of the recipient arrays or to the ReplyTo array.
- addOrEnqueueAnAddress() — Add an address to one of the recipient arrays or to the ReplyTo array.
- attachAll() — Attach all file, string, and binary attachments to the message.
- doCallback() — Perform a callback.
- edebug() — Output debugging info via user-defined method.
- encodeFile() — Encode a file attachment in requested format.
- endBoundary() — Return the end of a message boundary.
- getBoundary() — Return the start of a message boundary.
- lang() — Get an error message in the current language.
- mailSend() — Send mail using the PHP mail() function.
- sendmailSend() — Send mail using the $Sendmail program.
- serverHostname() — Get the server hostname.
- setError() — Add an error message to the error container.
- setMessageType() — Set the message type.
- smtpSend() — Send mail via SMTP.
public
- __construct() — Constructor.
- __destruct() — Destructor.
- DKIM_Add() — Create the DKIM header and body in a new message header.
- DKIM_BodyC() — Generate a DKIM canonicalization body.
- DKIM_HeaderC() — Generate a DKIM canonicalization header.
- DKIM_QP() — Quoted-Printable-encode a DKIM header.
- DKIM_Sign() — Generate a DKIM signature.
- _mime_types() — Get the MIME type for a file extension.
- addAddress() — Add a "To" address.
- addAttachment() — Add an attachment from a path on the filesystem.
- addBCC() — Add a "BCC" address.
- addCC() — Add a "CC" address.
- addCustomHeader() — Add a custom header.
- addEmbeddedImage() — Add an embedded (inline) attachment from a file.
- addReplyTo() — Add a "Reply-To" address.
- addStringAttachment() — Add a string or binary attachment (non-filesystem).
- addStringEmbeddedImage() — Add an embedded stringified attachment.
- addrAppend() — Create recipient headers.
- addrFormat() — Format an address for use in a message header.
- alternativeExists() — Check if this message has an alternative body set.
- attachmentExists() — Check if an attachment (non-inline) is present.
- base64EncodeWrapMB() — Encode and wrap long multibyte strings for mail headers without breaking lines within a character.
- clearAddresses() — Clear all To recipients.
- clearAllRecipients() — Clear all recipient types.
- clearAttachments() — Clear all filesystem, string, and binary attachments.
- clearBCCs() — Clear all BCC recipients.
- clearCCs() — Clear all CC recipients.
- clearCustomHeaders() — Clear all custom headers.
- clearQueuedAddresses() — Clear queued addresses of given kind.
- clearReplyTos() — Clear all ReplyTo recipients.
- createBody() — Assemble the message body.
- createHeader() — Assemble message headers.
- encodeHeader() — Encode a header string optimally.
- encodeQ() — Encode a string using Q encoding.
- encodeQP() — Encode a string in quoted-printable format.
- encodeQPphp() — Backward compatibility wrapper for an old QP encoding function that was removed.
- encodeString() — Encode a string in requested format.
- filenameToType() — Map a file name to a MIME type.
- fixEOL() — Ensure consistent line endings in a string.
- getAllRecipientAddresses() — Allows for public read access to 'all_recipients' property.
- getAttachments() — Return the array of attachments.
- getBccAddresses() — Allows for public read access to 'bcc' property.
- getCcAddresses() — Allows for public read access to 'cc' property.
- getCustomHeaders() — Returns all custom headers.
- getLastMessageID() — Return the Message-ID header of the last email.
- getMailMIME() — Get the message MIME type headers.
- getReplyToAddresses() — Allows for public read access to 'ReplyTo' property.
- getSMTPInstance() — Get an instance to use for SMTP operations.
- getSentMIMEMessage() — Returns the whole MIME message.
- getToAddresses() — Allows for public read access to 'to' property.
- getTranslations() — Get the array of strings for the current language.
- has8bitChars() — Does a string contain any 8-bit chars (in any charset)?
- hasLineLongerThanMax() — Detect if a string contains a line longer than the maximum line length allowed.
- hasMultiBytes() — Check if a string contains multi-byte characters.
- headerLine() — Format a header line.
- html2text() — Convert an HTML string into plain text.
- idnSupported() — Tells whether IDNs (Internationalized Domain Names) are supported or not.
- inlineImageExists() — Check if an inline attachment is present.
- isError() — Check if an error occurred.
- isHTML() — Sets message type to HTML or plain.
- isMail() — Send messages using PHP's mail() function.
- isQmail() — Send messages using qmail.
- isSMTP() — Send messages using SMTP.
- isSendmail() — Send messages using $Sendmail.
- mb_pathinfo() — Multi-byte-safe pathinfo replacement.
- msgHTML() — Create a message from an HTML string.
- normalizeBreaks() — Normalize line breaks in a string.
- parseAddresses() — 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.
- postSend() — Actually send a message.
- preSend() — Prepare a message for sending.
- punyencodeAddress() — Converts IDN in given email address to its ASCII form, also known as punycode, if possible.
- rfcDate() — Return an RFC 822 formatted date.
- secureHeader() — Strip newlines to prevent header injection.
- send() — Create a message and send it.
- set() — Set or reset instance properties.
- setFrom() — Set the From and FromName properties.
- setLanguage() — Set the language for error messages.
- setWordWrap() — Apply word wrapping to the message body.
- sign() — Set the public and private key files and password for S/MIME signing.
- smtpClose() — Close the active SMTP session if one exists.
- smtpConnect() — Initiate a connection to an SMTP server.
- textLine() — Return a formatted mail line.
- utf8CharBoundary() — Find the last character boundary prior to $maxLength in a utf-8 quoted-printable encoded string.
- validateAddress() — Check that a string looks like an email address.
- wrapText() — Word-wrap message.
History
-
2017-05-29T22:42:45+00:00 (commit #ba5872a)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Core remastered to Bootstrap CSS framework.