| package | PHPMailer |
|---|
AddAddress(string $address, string $name = '') : boolean
string
string
booleantrue on success, false if address already usedAddAttachment(string $path, string $name= '', string $encoding= 'base64', string $type= 'application/octet-stream') : boolean
Returns false if the file could not be found or accessed.
stringPath to the attachment.
stringOverrides the attachment name.
stringFile encoding (see $Encoding).
stringFile extension (MIME) type.
booleanAddBCC(string $address, string $name = '') : boolean
Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.
string
string
booleantrue on success, false if address already usedAddCC(string $address, string $name = '') : boolean
Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.
string
string
booleantrue on success, false if address already usedAddCustomHeader($custom_header) : void
| access | public |
|---|
AddEmbeddedImage(string $path, string $cid, string $name= '', string $encoding= 'base64', string $type= 'application/octet-stream') : boolean
stringPath to the attachment.
stringContent ID of the attachment. Use this to identify the Id for accessing the image in an HTML form.
stringOverrides the attachment name.
stringFile encoding (see $Encoding).
stringFile extension (MIME) type.
booleanAddReplyTo(string $address, string $name = '') : boolean
string
string
booleanAddStringAttachment(string $string, string $filename, string $encoding= 'base64', string $type= 'application/octet-stream') : void
This method can be used to attach ascii or binary data, such as a BLOB record from a database.
stringString attachment data.
stringName of the attachment.
stringFile encoding (see $Encoding).
stringFile extension (MIME) type.
AddStringEmbeddedImage($string, $cid, $filename= '', $encoding= 'base64', $type= 'application/octet-stream')
AddrAppend($type, $addr) : string
| access | public |
|---|
stringAddrFormat($addr) : string
| access | public |
|---|
stringAlternativeExists()
AttachmentExists()
Base64EncodeWrapMB(string $str) : string
Adapted from a function by paravoid at http://uk.php.net/manual/en/function.mb-encode-mimeheader.php
| access | public |
|---|
stringmulti-byte text to wrap encode
stringClearAddresses() : void
ClearAllRecipients() : void
ClearAttachments() : void
ClearBCCs() : void
ClearCCs() : void
ClearCustomHeaders() : void
ClearReplyTos() : void
CreateBody() : string
| access | public |
|---|
stringThe assembled message bodyCreateHeader() : string
| access | public |
|---|
stringThe assembled headerDKIM_Add(string $headers_line, string $subject, string $body)
| access | public |
|---|
stringHeader lines
stringSubject
stringBody
DKIM_BodyC(string $body)
| access | public |
|---|
stringMessage Body
DKIM_HeaderC(string $s)
| access | public |
|---|
stringHeader
DKIM_QP($txt)
| access | public |
|---|
DKIM_Sign(string $s)
| access | public |
|---|
stringHeader
EncodeHeader($str, $position = 'text') : string
| access | public |
|---|
stringEncodeQ(string $str, string $position = 'text') : string
| link | http://tools.ietf.org/html/rfc2047 |
|---|---|
| access | public |
stringthe text to encode
stringWhere the text is going to be used, see the RFC for what that means
stringEncodeQP(string $string, integer $line_max= 76, boolean $space_conv= false) : string
| see | |
|---|---|
| access | public |
| author | Marcus Bointon |
stringthe text to encode
integerNumber of chars allowed on a line before wrapping
booleanDummy param for compatibility with existing EncodeQP function
stringEncodeQPphp($input= '', integer $line_max= 76, $space_conv= false) : string
Only uses standard PHP, slow, but will always work
| access | public |
|---|
integerNumber of chars allowed on a line before wrapping
stringEncodeString(string $str, string $encoding = 'base64') : string
Returns an empty string on failure.
| access | public |
|---|
stringThe text to encode
stringThe encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable'
stringFixEOL($str) : string
| access | public |
|---|
stringGetAttachments() : array
arrayGetMailMIME() : string
| access | public |
|---|
stringGetSentMIMEMessage() : string
| access | public |
|---|
stringGetTranslations() : array
arrayHasMultiBytes(string $str) : boolean
| access | public |
|---|
stringmulti-byte text to wrap encode
booleanHeaderLine($name, $value) : string
| access | public |
|---|
stringInlineImageExists() : boolean
| access | public |
|---|
booleanIsError() : boolean
| access | public |
|---|
booleanIsHTML(boolean $ishtml = true) : void
boolean
IsMail() : void
IsQmail() : void
IsSMTP() : void
IsSendmail() : void
MsgHTML($message, $basedir = '') : \$message
| access | public |
|---|
\$messageRFCDate() : string
| access | public |
|---|---|
| static |
stringSecureHeader(string $str) : string
| access | public |
|---|
stringString
stringSend() : boolean
booleanSetFrom(string $address, string $name= '', $auto= 1) : boolean
string
string
booleanSetLanguage(string $langcode= 'en', string $lang_path= 'language/')
Returns false if it cannot load the language file. The default language is English.
| access | public |
|---|
stringISO 639-1 2-character language code (e.g. Portuguese: "br")
stringPath to the language file directory
SetWordWrap() : void
| access | public |
|---|
Sign($cert_filename, string $key_filename, string $key_pass)
| access | public |
|---|
stringParameter File Name
stringPassword for private key
SmtpClose() : void
SmtpConnect() : boolean
TextLine($value) : string
| access | public |
|---|
stringUTF8CharBoundary(string $encodedText, integer $maxLength) : integer
Original written by Colin Brown.
| access | public |
|---|
stringutf-8 QP text
integerfind last character boundary prior to this length
integerValidateAddress(string $address) : boolean
| link | Original pattern found here |
|---|---|
| static | |
| access | public |
stringThe email address to check
booleanWrapText(string $message, integer $length, boolean $qp_mode = false) : string
Original written by philippe.
| access | public |
|---|
stringThe message to wrap
integerThe line length to wrap to
booleanWhether to run in Quoted-Printable mode
string__construct(boolean $exceptions = false)
booleanShould we throw external exceptions?
_mime_types(string $ext = '') : string
| access | public |
|---|---|
| static |
stringFile extension
stringMIME type of extset(string $name, mixed $value = '')
Usage Example: $page->set('X-Priority', '3');
| access | public |
|---|---|
| todo | Should this not be using __set() magic function? |
stringParameter Name
mixedParameter Value NOTE: will not work with arrays, there are no arrays to set/reset
AddAnAddress(string $kind, string $address, string $name = '') : boolean
| access | protected |
|---|
stringOne of 'to', 'cc', 'bcc', 'ReplyTo'
stringThe email address to send to
string
booleantrue on success, false if address already used or invalid in some wayAttachAll($disposition_type, $boundary) : string
Returns an empty string on failure.
| access | protected |
|---|
stringEncodeFile(string $path, string $encoding = 'base64') : string
EndBoundary($boundary) : string
| access | protected |
|---|
stringGetBoundary($boundary, $charSet, $contentType, $encoding) : string
| access | protected |
|---|
stringLang($key) : string
| access | protected |
|---|
stringMailSend(string $header, string $body) : boolean
| access | protected |
|---|
stringThe message headers
stringThe message body
booleanPostSend()
PreSend()
SendmailSend(string $header, string $body) : boolean
| access | protected |
|---|
stringThe message headers
stringThe message body
booleanServerHostname() : string
| access | protected |
|---|
stringSetError($msg) : void
| access | protected |
|---|
SetMessageType() : void
| access | protected |
|---|
SmtpSend(string $header, string $body) : boolean
doCallback($isSent, $to, $cc, $bcc, $subject, $body)
$AltBody : string
''$Body : string
''If HTML then run IsHTML(true).
$CharSet : string
'iso-8859-1'$ConfirmReadingTo : string
''$ContentType : string
'text/plain'$DKIM_domain : string
''$DKIM_identity : string
''$DKIM_passphrase : string
''$DKIM_private : string
''$DKIM_selector : string
'phpmailer'$Encoding : string
'8bit'$ErrorInfo : string
''$From : string
'root@localhost'$FromName : string
'Root User'$Helo : string
''$Host : string
'localhost'Hosts will be tried in order.
$Hostname : string
''$LE : string
"\n"$Mailer : string
'mail'$MessageID : string
''If empty, a unique id will be generated.
$Password : string
''$PluginDir : string
''$Port : integer
25$Priority : integer
3$SMTPAuth : boolean
false$SMTPDebug : boolean
false$SMTPKeepAlive : boolean
false$SMTPSecure : string
''Options are "", "ssl" or "tls"
$Sender : string
''$Sendmail : string
'/usr/sbin/sendmail'$SingleTo : boolean
false$SingleToArray : boolean
array()$Subject : string
''$Timeout : integer
10This function will not work with the win32 version.
$Username : string
''$Version : string
'5.2.1'$WordWrap : integer
0$XMailer : string
''$action_function : string
''$CustomHeader
array()$MIMEBody : string
''| access | protected |
|---|
$MIMEHeader : string
''| access | protected |
|---|
$ReplyTo
array()$SentMIMEMessage : string
''| access | protected |
|---|
$all_recipients
array()$bcc
array()$boundary
array()$cc
array()$error_count
0$exceptions
false$language
array()$sign_cert_file
''$sign_key_file
''$sign_key_pass
''$smtp
NULL$to
array()STOP_CONTINUE = 1
STOP_CRITICAL = 2
STOP_MESSAGE = 0