AddAddress()
AddAttachment()
AddBCC()
AddCC()
AddCustomHeader()
AddEmbeddedImage()
AddReplyTo()
AddStringAttachment()
AddStringEmbeddedImage()
AddrAppend()
AddrFormat()
AlternativeExists()
AttachmentExists()
Base64EncodeWrapMB()
ClearAddresses()
ClearAllRecipients()
ClearAttachments()
ClearBCCs()
ClearCCs()
ClearCustomHeaders()
ClearReplyTos()
CreateBody()
CreateHeader()
DKIM_Add()
DKIM_BodyC()
DKIM_HeaderC()
DKIM_QP()
DKIM_Sign()
EncodeHeader()
EncodeQ()
EncodeQP()
EncodeString()
FixEOL()
GetAttachments()
GetMailMIME()
GetSentMIMEMessage()
GetTranslations()
HasMultiBytes()
HeaderLine()
InlineImageExists()
IsError()
IsHTML()
IsMail()
IsQmail()
IsSMTP()
IsSendmail()
MsgHTML()
PostSend()
PreSend()
RFCDate()
SecureHeader()
Send()
SetFrom()
SetLanguage()
SetWordWrap()
Sign()
SmtpClose()
SmtpConnect()
TextLine()
UTF8CharBoundary()
ValidateAddress()
WrapText()
__construct()
_mime_types()
set()
AddAnAddress()
AttachAll()
EncodeFile()
EndBoundary()
GetBoundary()
Lang()
MailSend()
SendmailSend()
ServerHostname()
SetError()
SetMessageType()
SmtpSend()
doCallback()
edebug()
mail_passthru()
$AltBody
$AuthType
$Body
$CharSet
$ConfirmReadingTo
$ContentType
$DKIM_domain
$DKIM_identity
$DKIM_passphrase
$DKIM_private
$DKIM_selector
$Debugoutput
$Encoding
$ErrorInfo
$From
$FromName
$Helo
$Host
$Hostname
$LE
$Mailer
$MessageDate
$MessageID
$Password
$PluginDir
$Port
$Priority
$Realm
$ReturnPath
$SMTPAuth
$SMTPDebug
$SMTPKeepAlive
$SMTPSecure
$Sender
$Sendmail
$SingleTo
$SingleToArray
$Subject
$Timeout
$UseSendmailOptions
$Username
$Version
$WordWrap
$Workstation
$XMailer
$action_function
$CustomHeader
$MIMEBody
$MIMEHeader
$ReplyTo
$all_recipients
$attachment
$bcc
$boundary
$cc
$error_count
$exceptions
$language
$mailHeader
$message_type
$sign_cert_file
$sign_key_file
$sign_key_pass
$smtp
$to
CRLF
STOP_CONTINUE
STOP_CRITICAL
STOP_MESSAGE
PHP email creation and transport class
| package | PHPMailer |
|---|
AddAddress(string $address, string $name) : boolean
string
string
booleantrue on success, false if address already usedAddAttachment(string $path, string $name, string $encoding, string $type) : bool
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.
\phpmailerException |
|---|
boolAddBCC(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(string $name, string $value) : void
$name value can be overloaded to contain both header name and value (name:value)
| access | public |
|---|
stringcustom header name
stringheader value
AddEmbeddedImage(string $path, string $cid, string $name, string $encoding, string $type) : bool
This can include images, sounds, and just about any other document. Make sure to set the $type to an image type. For JPEG images use "image/jpeg" and for GIF images use "image/gif".
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.
boolAddReplyTo(string $address, string $name) : boolean
string
string
booleanAddStringAttachment(string $string, string $filename, string $encoding, string $type) : 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 $string, string $cid, string $name, string $encoding, string $type) : bool
This can include images, sounds, and just about any other document. Make sure to set the $type to an image type. For JPEG images use "image/jpeg" and for GIF images use "image/gif".
stringThe 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.
boolAddrAppend(string $type, array $addr) : string
| access | public |
|---|
string
array
stringAddrFormat(string $addr) : string
| access | public |
|---|
string
stringAlternativeExists() : bool
boolAttachmentExists() : bool
boolBase64EncodeWrapMB(string $str, string $lf) : 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
stringstring to use as linefeed/end-of-line
stringClearAddresses() : void
Returns void.
ClearAllRecipients() : void
Returns void.
ClearAttachments() : void
Returns void.
ClearBCCs() : void
Returns void.
ClearCCs() : void
Returns void.
ClearCustomHeaders() : void
Returns void.
ClearReplyTos() : void
Returns void.
CreateBody() : string
Returns an empty string on failure.
| access | public |
|---|
\phpmailerException |
|---|
stringThe assembled message bodyCreateHeader() : string
| access | public |
|---|
stringThe assembled headerDKIM_Add(string $headers_line, string $subject, string $body) : string
| access | public |
|---|
stringHeader lines
stringSubject
stringBody
stringDKIM_BodyC(string $body) : string
| access | public |
|---|
stringMessage Body
stringDKIM_HeaderC(string $s) : string
| access | public |
|---|
stringHeader
stringDKIM_QP(string $txt) : string
| access | public |
|---|
string
stringDKIM_Sign(string $s) : string
| access | public |
|---|
stringHeader
stringEncodeHeader(string $str, string $position) : string
| access | public |
|---|
string
string
stringEncodeQ(string $str, string $position) : 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, boolean $space_conv) : string
| see | \global\EncodeQPphp() |
|---|---|
| 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
stringEncodeString(string $str, string $encoding) : 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(string $str) : string
| access | public |
|---|
stringString to FixEOL
stringGetAttachments() : array
arrayGetMailMIME() : string
| access | public |
|---|
stringGetSentMIMEMessage() : string
Only really valid post PreSend().
| access | public |
|---|
stringGetTranslations() : array
arrayHasMultiBytes(string $str) : bool
| access | public |
|---|
stringmulti-byte text to wrap encode
boolHeaderLine(string $name, string $value) : string
| access | public |
|---|
string
string
stringInlineImageExists() : bool
| access | public |
|---|
boolIsError() : bool
| access | public |
|---|
boolIsHTML(bool $ishtml) : void
bool
IsMail() : void
IsQmail() : void
IsSMTP() : void
IsSendmail() : void
MsgHTML(string $message, string $basedir) : string
| access | public |
|---|
stringText to be HTML modified
stringbaseline directory for path
string$messagePostSend() : bool
PreSend() : bool
RFCDate() : string
| access | public |
|---|---|
| static |
stringSecureHeader(string $str) : string
| access | public |
|---|
stringString
stringSend() : bool
If the message is not sent successfully then it returns false. Use the ErrorInfo variable to view description of the error.
\phpmailerException |
|---|
boolSetFrom(string $address, string $name, int $auto) : boolean
string
string
intAlso set Reply-To and Sender
\phpmailerException |
|---|
booleanSetLanguage(string $langcode, string $lang_path) : bool
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
boolSetWordWrap() : void
| access | public |
|---|
Sign($cert_filename, string $key_filename, string $key_pass)
| access | public |
|---|
stringParameter File Name
stringPassword for private key
SmtpClose() : void
SmtpConnect() : bool