Öffentliche Methoden | |
__construct ($exceptions=false) | |
__destruct () | |
isHTML ($isHtml=true) | |
isSMTP () | |
isMail () | |
isSendmail () | |
isQmail () | |
addAddress ($address, $name= '') | |
addCC ($address, $name= '') | |
addBCC ($address, $name= '') | |
addReplyTo ($address, $name= '') | |
setFrom ($address, $name= '', $auto=true) | |
getLastMessageID () | |
send () | |
preSend () | |
postSend () | |
getSMTPInstance () | |
smtpConnect ($options=array()) | |
smtpClose () | |
setLanguage ($langcode= 'en', $lang_path= '') | |
getTranslations () | |
addrAppend ($type, $addr) | |
addrFormat ($addr) | |
wrapText ($message, $length, $qp_mode=false) | |
utf8CharBoundary ($encodedText, $maxLength) | |
setWordWrap () | |
createHeader () | |
getMailMIME () | |
getSentMIMEMessage () | |
createBody () | |
headerLine ($name, $value) | |
textLine ($value) | |
addAttachment ($path, $name= '', $encoding= 'base64', $type= '', $disposition= 'attachment') | |
getAttachments () | |
encodeString ($str, $encoding= 'base64') | |
encodeHeader ($str, $position= 'text') | |
hasMultiBytes ($str) | |
has8bitChars ($text) | |
base64EncodeWrapMB ($str, $linebreak=null) | |
encodeQP ($string, $line_max=76) | |
encodeQPphp ($string, $line_max=76, $space_conv=false) | |
encodeQ ($str, $position= 'text') | |
addStringAttachment ($string, $filename, $encoding= 'base64', $type= '', $disposition= 'attachment') | |
addEmbeddedImage ($path, $cid, $name= '', $encoding= 'base64', $type= '', $disposition= 'inline') | |
addStringEmbeddedImage ($string, $cid, $name= '', $encoding= 'base64', $type= '', $disposition= 'inline') | |
inlineImageExists () | |
attachmentExists () | |
alternativeExists () | |
clearAddresses () | |
clearCCs () | |
clearBCCs () | |
clearReplyTos () | |
clearAllRecipients () | |
clearAttachments () | |
clearCustomHeaders () | |
isError () | |
fixEOL ($str) | |
addCustomHeader ($name, $value=null) | |
msgHTML ($message, $basedir= '', $advanced=false) | |
html2text ($html, $advanced=false) | |
set ($name, $value= '') | |
secureHeader ($str) | |
sign ($cert_filename, $key_filename, $key_pass) | |
DKIM_QP ($txt) | |
DKIM_Sign ($signHeader) | |
DKIM_HeaderC ($signHeader) | |
DKIM_BodyC ($body) | |
DKIM_Add ($headers_line, $subject, $body) | |
getToAddresses () | |
getCcAddresses () | |
getBccAddresses () | |
getReplyToAddresses () | |
getAllRecipientAddresses () | |
Öffentliche, statische Methoden | |
static | validateAddress ($address, $patternselect= 'auto') |
static | rfcDate () |
static | _mime_types ($ext= '') |
static | filenameToType ($filename) |
static | mb_pathinfo ($path, $options=null) |
static | normalizeBreaks ($text, $breaktype="\r\n") |
Datenfelder | |
$Version = '5.2.9' | |
$Priority = 3 | |
$CharSet = 'iso-8859-1' | |
$ContentType = 'text/plain' | |
$Encoding = '8bit' | |
$ErrorInfo = '' | |
$From = 'root@localhost' | |
$FromName = 'Root User' | |
$Sender = '' | |
$ReturnPath = '' | |
$Subject = '' | |
$Body = '' | |
$AltBody = '' | |
$Ical = '' | |
$WordWrap = 0 | |
$Mailer = 'mail' | |
$Sendmail = '/usr/sbin/sendmail' | |
$UseSendmailOptions = true | |
$PluginDir = '' | |
$ConfirmReadingTo = '' | |
$Hostname = '' | |
$MessageID = '' | |
$MessageDate = '' | |
$Host = 'localhost' | |
$Port = 25 | |
$Helo = '' | |
$SMTPSecure = '' | |
$SMTPAuth = false | |
$Username = '' | |
$Password = '' | |
$AuthType = '' | |
$Realm = '' | |
$Workstation = '' | |
$Timeout = 10 | |
$SMTPDebug = 0 | |
$Debugoutput = 'echo' | |
$SMTPKeepAlive = false | |
$SingleTo = false | |
$SingleToArray = array() | |
$do_verp = false | |
$AllowEmpty = false | |
$LE = "\n" | |
$DKIM_selector = '' | |
$DKIM_identity = '' | |
$DKIM_passphrase = '' | |
$DKIM_domain = '' | |
$DKIM_private = '' | |
$action_function = '' | |
$XMailer = '' | |
const | STOP_MESSAGE = 0 |
const | STOP_CONTINUE = 1 |
const | STOP_CRITICAL = 2 |
const | CRLF = "\r\n" |
Geschützte Methoden | |
edebug ($str) | |
addAnAddress ($kind, $address, $name= '') | |
sendmailSend ($header, $body) | |
mailSend ($header, $body) | |
smtpSend ($header, $body) | |
getBoundary ($boundary, $charSet, $contentType, $encoding) | |
endBoundary ($boundary) | |
setMessageType () | |
attachAll ($disposition_type, $boundary) | |
encodeFile ($path, $encoding= 'base64') | |
setError ($msg) | |
serverHostname () | |
lang ($key) | |
doCallback ($isSent, $to, $cc, $bcc, $subject, $body, $from) | |
Geschützte Attribute | |
$MIMEBody = '' | |
$MIMEHeader = '' | |
$mailHeader = '' | |
$smtp = null | |
$to = array() | |
$cc = array() | |
$bcc = array() | |
$ReplyTo = array() | |
$all_recipients = array() | |
$attachment = array() | |
$CustomHeader = array() | |
$lastMessageID = '' | |
$message_type = '' | |
$boundary = array() | |
$language = array() | |
$error_count = 0 | |
$sign_cert_file = '' | |
$sign_key_file = '' | |
$sign_key_pass = '' | |
$exceptions = false | |
Private Methoden | |
mailPassthru ($to, $subject, $body, $header, $params) | |
Definiert in Zeile 28 der Datei class.phpmailer.php.
__construct | ( | $exceptions = false ) |
Constructor.
boolean | $exceptions | Should we throw external exceptions? |
Definiert in Zeile 576 der Datei class.phpmailer.php.
Benutzt $exceptions.
__destruct | ( | ) |
Destructor.
Definiert in Zeile 584 der Datei class.phpmailer.php.
Benutzt smtpClose().
|
static |
Get the MIME type for a file extension.
string | $ext | File extension public |
Definiert in Zeile 2984 der Datei class.phpmailer.php.
addAddress | ( | $address, | |
$name = '' |
|||
) |
Add a "To" address.
string | $address | |
string | $name |
Definiert in Zeile 732 der Datei class.phpmailer.php.
Benutzt addAnAddress().
|
protected |
Add an address to one of the recipient arrays. Addresses that have been added already return false, but do not throw exceptions
string | $kind | One of 'to', 'cc', 'bcc', 'ReplyTo' |
string | $address | The email address to send to |
string | $name |
phpmailerException |
Definiert in Zeile 782 der Datei class.phpmailer.php.
Benutzt edebug(), lang(), setError() und validateAddress().
Wird benutzt von addAddress(), addBCC(), addCC() und addReplyTo().
addAttachment | ( | $path, | |
$name = '' , |
|||
$encoding = 'base64' , |
|||
$type = '' , |
|||
$disposition = 'attachment' |
|||
) |
Add an attachment from a path on the filesystem. Returns false if the file could not be found or read.
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 |
phpmailerException |
Definiert in Zeile 2070 der Datei class.phpmailer.php.
Benutzt edebug(), lang() und setError().
addBCC | ( | $address, | |
$name = '' |
|||
) |
Add a "BCC" address.
string | $address | |
string | $name |
Definiert in Zeile 756 der Datei class.phpmailer.php.
Benutzt addAnAddress().
addCC | ( | $address, | |
$name = '' |
|||
) |
Add a "CC" address.
string | $address | |
string | $name |
Definiert in Zeile 744 der Datei class.phpmailer.php.
Benutzt addAnAddress().
addCustomHeader | ( | $name, | |
$value = null |
|||
) |
Add a custom header. $name value can be overloaded to contain both header name and value (name:value) public
string | $name | Custom header name |
string | $value | Header value |
Definiert in Zeile 2873 der Datei class.phpmailer.php.
addEmbeddedImage | ( | $path, | |
$cid, | |||
$name = '' , |
|||
$encoding = 'base64' , |
|||
$type = '' , |
|||
$disposition = 'inline' |
|||
) |
Add an embedded (inline) attachment from a file. This can include images, sounds, and just about any other document type. These differ from 'regular' attachmants 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.
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 |
Definiert in Zeile 2579 der Datei class.phpmailer.php.
Benutzt lang() und setError().
Wird benutzt von msgHTML().
addrAppend | ( | $type, | |
$addr | |||
) |
Create recipient headers. public
string | $type | |
array | $addr | An array of recipient, where each recipient is a 2-element indexed array with element 0 containing an address and element 1 containing a name, like: array(array('joe@e', 'Joe User'), array(' xamp le.co mzoe@e', 'Zoe User')) xamp le.co m |
Definiert in Zeile 1455 der Datei class.phpmailer.php.
Benutzt $LE und addrFormat().
Wird benutzt von createHeader() und preSend().
addReplyTo | ( | $address, | |
$name = '' |
|||
) |
Add a "Reply-to" address.
string | $address | |
string | $name |
Definiert in Zeile 767 der Datei class.phpmailer.php.
Benutzt addAnAddress().
addrFormat | ( | $addr) |
Format an address for use in a message header. public
array | $addr | A 2-element indexed array, element 0 containing an address, element 1 containing a name like array('joe@e', 'Joe User') xamp le.co m |
Definiert in Zeile 1471 der Datei class.phpmailer.php.
Benutzt encodeHeader() und secureHeader().
Wird benutzt von addrAppend(), createHeader() und mailSend().
addStringAttachment | ( | $string, | |
$filename, | |||
$encoding = 'base64' , |
|||
$type = '' , |
|||
$disposition = 'attachment' |
|||
) |
Add a string or binary attachment (non-filesystem). This method can be used to attach ascii or binary data, such as a BLOB record from a database.
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 |
Definiert in Zeile 2539 der Datei class.phpmailer.php.
addStringEmbeddedImage | ( | $string, | |
$cid, | |||
$name = '' , |
|||
$encoding = 'base64' , |
|||
$type = '' , |
|||
$disposition = 'inline' |
|||
) |
Add an embedded stringified attachment. This can include images, sounds, and just about any other document type. Be sure to set the $type to an image type for images: JPEG images use 'image/jpeg', GIF uses 'image/gif', PNG uses 'image/png'.
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 | |
string | $encoding | File encoding (see $Encoding). |
string | $type | MIME type. |
string | $disposition | Disposition to use |
Definiert in Zeile 2624 der Datei class.phpmailer.php.
Wird benutzt von msgHTML().
alternativeExists | ( | ) |
Check if this message has an alternative body set.
Definiert in Zeile 2684 der Datei class.phpmailer.php.
Wird benutzt von setMessageType().
|
protected |
Attach all file, string, and binary attachments to the message. Returns an empty string on failure. protected
string | $disposition_type | |
string | $boundary |
Definiert in Zeile 2126 der Datei class.phpmailer.php.
Benutzt $attachment, $boundary, $LE, encodeFile(), encodeHeader(), encodeString(), isError() und secureHeader().
Wird benutzt von createBody().
attachmentExists | ( | ) |
Check if an attachment (non-inline) is present.
Definiert in Zeile 2670 der Datei class.phpmailer.php.
Benutzt $attachment.
Wird benutzt von setMessageType().
base64EncodeWrapMB | ( | $str, | |
$linebreak = null |
|||
) |
Encode and wrap long multibyte strings for mail headers without breaking lines within a character. Adapted from a function by paravoid public string $str multi-byte text to wrap encode string $linebreak string to use as linefeed/end-of-line string
Definiert in Zeile 2404 der Datei class.phpmailer.php.
Benutzt $LE.
Wird benutzt von encodeHeader().
clearAddresses | ( | ) |
Clear all To recipients.
Definiert in Zeile 2693 der Datei class.phpmailer.php.
Benutzt $to.
clearAllRecipients | ( | ) |
clearAttachments | ( | ) |
Clear all filesystem, string, and binary attachments.
Definiert in Zeile 2750 der Datei class.phpmailer.php.
clearBCCs | ( | ) |
Clear all BCC recipients.
Definiert in Zeile 2717 der Datei class.phpmailer.php.
Benutzt $bcc.
clearCCs | ( | ) |
Clear all CC recipients.
Definiert in Zeile 2705 der Datei class.phpmailer.php.
Benutzt $cc.
clearCustomHeaders | ( | ) |
clearReplyTos | ( | ) |
createBody | ( | ) |
Assemble the message body. Returns an empty string on failure. public
phpmailerException |
Definiert in Zeile 1812 der Datei class.phpmailer.php.
Benutzt $CharSet, $Encoding, $LE, attachAll(), encodeString(), endBoundary(), getBoundary(), getMailMIME(), has8bitChars(), headerLine(), isError(), lang(), setWordWrap() und textLine().
Wird benutzt von preSend().
createHeader | ( | ) |
Assemble message headers. public
Definiert in Zeile 1643 der Datei class.phpmailer.php.
Benutzt $MessageID, addrAppend(), addrFormat(), encodeHeader(), getMailMIME(), headerLine() und secureHeader().
Wird benutzt von preSend().
DKIM_Add | ( | $headers_line, | |
$subject, | |||
$body | |||
) |
Create the DKIM header and body in a new message header. public
string | $headers_line | Header lines |
string | $subject | Subject |
string | $body | Body |
Definiert in Zeile 3312 der Datei class.phpmailer.php.
Benutzt $to, DKIM_BodyC(), DKIM_HeaderC(), DKIM_QP() und DKIM_Sign().
Wird benutzt von preSend().
DKIM_BodyC | ( | $body) |
Generate a DKIM canonicalization body. public
string | $body | Message Body |
Definiert in Zeile 3289 der Datei class.phpmailer.php.
Wird benutzt von DKIM_Add().
DKIM_HeaderC | ( | $signHeader) |
Generate a DKIM canonicalization header. public
string | $signHeader | Header |
Definiert in Zeile 3269 der Datei class.phpmailer.php.
Wird benutzt von DKIM_Add().
DKIM_QP | ( | $txt) |
Quoted-Printable-encode a DKIM header. public
string | $txt |
Definiert in Zeile 3222 der Datei class.phpmailer.php.
Wird benutzt von DKIM_Add().
DKIM_Sign | ( | $signHeader) |
Generate a DKIM signature. public
string | $signHeader |
phpmailerException |
Definiert in Zeile 3243 der Datei class.phpmailer.php.
Benutzt lang().
Wird benutzt von DKIM_Add().
|
protected |
Perform a callback.
boolean | $isSent | |
array | $to | |
array | $cc | |
array | $bcc | |
string | $subject | |
string | $body | |
string | $from |
Definiert in Zeile 3430 der Datei class.phpmailer.php.
Wird benutzt von mailSend(), sendmailSend() und smtpSend().
|
protected |
Output debugging info via user-defined method. Only generates output if SMTP debug output is enabled (
string | $str |
Definiert in Zeile 627 der Datei class.phpmailer.php.
Wird benutzt von addAnAddress(), addAttachment(), postSend() und setFrom().
|
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' |
phpmailerException |
Definiert in Zeile 2235 der Datei class.phpmailer.php.
Benutzt encodeString(), lang() und setError().
Wird benutzt von attachAll().
encodeHeader | ( | $str, | |
$position = 'text' |
|||
) |
Encode a header string optimally. Picks shortest of Q, B, quoted-printable or none. public
string | $str | |
string | $position |
PhpMissingBreakStatementInspection
Definiert in Zeile 2312 der Datei class.phpmailer.php.
Benutzt base64EncodeWrapMB(), encodeQ(), hasMultiBytes() und wrapText().
Wird benutzt von addrFormat(), attachAll(), createHeader(), mailPassthru() und preSend().
encodeQ | ( | $str, | |
$position = 'text' |
|||
) |
Encode a string using Q encoding. string $str the text to encode string $position Where the text is going to be used, see the RFC for what that means public string
PhpMissingBreakStatementInspection
Definiert in Zeile 2487 der Datei class.phpmailer.php.
Wird benutzt von encodeHeader().
encodeQP | ( | $string, | |
$line_max = 76 |
|||
) |
Encode a string in quoted-printable format. According to RFC2045 section 6.7. public
string | $string | The text to encode |
integer | $line_max | Number of chars allowed on a line before wrapping |
Definiert in Zeile 2446 der Datei class.phpmailer.php.
Benutzt fixEOL().
Wird benutzt von encodeQPphp() und encodeString().
encodeQPphp | ( | $string, | |
$line_max = 76 , |
|||
$space_conv = false |
|||
) |
Backward compatibility wrapper for an old QP encoding function that was removed.
string | $string | |
integer | $line_max | |
boolean | $space_conv |
$space_conv | PhpUnusedParameterInspection |
Definiert in Zeile 2471 der Datei class.phpmailer.php.
Benutzt encodeQP().
encodeString | ( | $str, | |
$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' public |
Definiert in Zeile 2276 der Datei class.phpmailer.php.
Benutzt $LE, encodeQP(), fixEOL(), lang() und setError().
Wird benutzt von attachAll(), createBody() und encodeFile().
|
protected |
Return the end of a message boundary. protected
string | $boundary |
Definiert in Zeile 2006 der Datei class.phpmailer.php.
Wird benutzt von 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 |
Definiert in Zeile 3086 der Datei class.phpmailer.php.
fixEOL | ( | $str) |
Ensure consistent line endings in a string. Changes every end of line from CRLF, CR or LF to $this->LE. public
string | $str | String to fixEOL |
Definiert in Zeile 2853 der Datei class.phpmailer.php.
Wird benutzt von encodeQP(), encodeString() und wrapText().
getAllRecipientAddresses | ( | ) |
Allows for public read access to 'all_recipients' property. public
Definiert in Zeile 3415 der Datei class.phpmailer.php.
Benutzt $all_recipients.
getAttachments | ( | ) |
Return the array of attachments.
Definiert in Zeile 2113 der Datei class.phpmailer.php.
Benutzt $attachment.
getBccAddresses | ( | ) |
Allows for public read access to 'bcc' property. public
Definiert in Zeile 3395 der Datei class.phpmailer.php.
Benutzt $bcc.
|
protected |
Return the start of a message boundary. protected
string | $boundary | |
string | $charSet | |
string | $contentType | |
string | $encoding |
Definiert in Zeile 1976 der Datei class.phpmailer.php.
Benutzt $boundary, $CharSet, $ContentType, $Encoding, $LE, headerLine() und textLine().
Wird benutzt von createBody().
getCcAddresses | ( | ) |
Allows for public read access to 'cc' property. public
Definiert in Zeile 3385 der Datei class.phpmailer.php.
Benutzt $cc.
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.
Definiert in Zeile 854 der Datei class.phpmailer.php.
Benutzt $lastMessageID.
getMailMIME | ( | ) |
Get the message MIME type headers. public
Definiert in Zeile 1744 der Datei class.phpmailer.php.
Benutzt $LE, headerLine() und textLine().
Wird benutzt von createBody() und createHeader().
getReplyToAddresses | ( | ) |
Allows for public read access to 'ReplyTo' property. public
Definiert in Zeile 3405 der Datei class.phpmailer.php.
Benutzt $ReplyTo.
getSentMIMEMessage | ( | ) |
Returns the whole MIME message. Includes complete headers and body. Only valid post preSend().
Definiert in Zeile 1799 der Datei class.phpmailer.php.
Benutzt $MIMEBody.
getSMTPInstance | ( | ) |
Get an instance to use for SMTP operations. Override this function to load your own SMTP implementation
Definiert in Zeile 1191 der Datei class.phpmailer.php.
Benutzt $smtp.
Wird benutzt von smtpConnect().
getToAddresses | ( | ) |
Allows for public read access to 'to' property. public
Definiert in Zeile 3375 der Datei class.phpmailer.php.
Benutzt $to.
getTranslations | ( | ) |
Get the array of strings for the current language.
Definiert in Zeile 1440 der Datei class.phpmailer.php.
Benutzt $language.
has8bitChars | ( | $text) |
Does a string contain any 8-bit chars (in any charset)?
string | $text |
Definiert in Zeile 2389 der Datei class.phpmailer.php.
Wird benutzt von createBody().
hasMultiBytes | ( | $str) |
Check if a string contains multi-byte characters. public
string | $str | multi-byte text to wrap encode |
Definiert in Zeile 2375 der Datei class.phpmailer.php.
Wird benutzt von encodeHeader().
headerLine | ( | $name, | |
$value | |||
) |
Format a header line. public
string | $name | |
string | $value |
Definiert in Zeile 2043 der Datei class.phpmailer.php.
Benutzt $LE.
Wird benutzt von createBody(), createHeader(), getBoundary(), getMailMIME() und preSend().
html2text | ( | $html, | |
$advanced = false |
|||
) |
Convert an HTML string into plain text.
string | $html | The HTML text to convert |
boolean | $advanced | Should this use the more complex html2text converter or just a simple one? |
Definiert in Zeile 2963 der Datei class.phpmailer.php.
Wird benutzt von msgHTML().
inlineImageExists | ( | ) |
Check if an inline attachment is present. public
Definiert in Zeile 2656 der Datei class.phpmailer.php.
Benutzt $attachment.
Wird benutzt von setMessageType().
isError | ( | ) |
Check if an error occurred. public
Definiert in Zeile 2841 der Datei class.phpmailer.php.
Wird benutzt von attachAll() und createBody().
isHTML | ( | $isHtml = true ) |
Sets message type to HTML or plain.
boolean | $isHtml | True for HTML mode. |
Definiert in Zeile 667 der Datei class.phpmailer.php.
Wird benutzt von msgHTML().
isMail | ( | ) |
Send messages using PHP's mail() function.
Definiert in Zeile 689 der Datei class.phpmailer.php.
isQmail | ( | ) |
isSendmail | ( | ) |
isSMTP | ( | ) |
|
protected |
Get an error message in the current language. protected
string | $key |
Definiert in Zeile 2823 der Datei class.phpmailer.php.
Benutzt setLanguage().
Wird benutzt von addAnAddress(), addAttachment(), addEmbeddedImage(), createBody(), DKIM_Sign(), encodeFile(), encodeString(), mailSend(), preSend(), sendmailSend(), set(), setError(), setFrom(), smtpConnect() und 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 | $params | Params private |
Definiert in Zeile 604 der Datei class.phpmailer.php.
Benutzt $to, encodeHeader() und secureHeader().
Wird benutzt von mailSend().
|
protected |
Send mail using the PHP mail() function.
string | $header | The message headers |
string | $body | The message body phpmailerException protected boolean |
Definiert in Zeile 1150 der Datei class.phpmailer.php.
Benutzt $to, addrFormat(), doCallback(), lang() und mailPassthru().
Wird benutzt von postSend().
|
static |
Multi-byte-safe pathinfo replacement. Drop-in replacement for pathinfo(), but multibyte-safe, cross-platform-safe, old-version-safe. Works similarly to the one in PHP >= 5.2.0 string $path A filename or path, does not need to exist as a file integer|string $options Either a PATHINFO_* constant, or a string name to return only the specified piece, allows 'filename' to work on PHP < 5.2 string|array
Definiert in Zeile 3108 der Datei class.phpmailer.php.
msgHTML | ( | $message, | |
$basedir = '' , |
|||
$advanced = false |
|||
) |
Create a message from an HTML string. Automatically makes modifications for inline images and backgrounds and creates a plain-text version by converting the HTML. Overwrites any existing values in $this->Body and $this->AltBody public
string | $message | HTML message string |
string | $basedir | baseline directory for path |
boolean | $advanced | Whether to use the advanced HTML to text converter |
Definiert in Zeile 2894 der Datei class.phpmailer.php.
Benutzt $Body, addEmbeddedImage(), addStringEmbeddedImage(), html2text(), isHTML() und normalizeBreaks().
|
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 CRLF |
Definiert in Zeile 3196 der Datei class.phpmailer.php.
Wird benutzt von msgHTML().
postSend | ( | ) |
Actually send a message. Send the email via the selected mechanism
phpmailerException |
Definiert in Zeile 1050 der Datei class.phpmailer.php.
Benutzt edebug(), mailSend(), sendmailSend(), setError() und smtpSend().
Wird benutzt von send().
preSend | ( | ) |
Prepare a message for sending.
phpmailerException |
Definiert in Zeile 982 der Datei class.phpmailer.php.
Benutzt addrAppend(), createBody(), createHeader(), DKIM_Add(), encodeHeader(), headerLine(), lang(), secureHeader(), setError() und setMessageType().
Wird benutzt von send().
|
static |
Return an RFC 822 formatted date. public
Definiert in Zeile 2788 der Datei class.phpmailer.php.
secureHeader | ( | $str) |
Strip newlines to prevent header injection. public
string | $str |
Definiert in Zeile 3181 der Datei class.phpmailer.php.
Wird benutzt von addrFormat(), attachAll(), createHeader(), mailPassthru() und preSend().
send | ( | ) |
Create a message and send it. Uses the sending method specified by $Mailer.
phpmailerException |
Definiert in Zeile 960 der Datei class.phpmailer.php.
Benutzt postSend(), preSend() und setError().
|
protected |
Send mail using the $Sendmail program.
string | $header | The message headers |
string | $body | The message body |
phpmailerException | protected |
Definiert in Zeile 1089 der Datei class.phpmailer.php.
Benutzt doCallback() und lang().
Wird benutzt von postSend().
|
protected |
Get the server hostname. Returns 'localhost.localdomain' if unknown. protected
Definiert in Zeile 2802 der Datei class.phpmailer.php.
Benutzt $Hostname.
Wird benutzt von smtpConnect().
set | ( | $name, | |
$value = '' |
|||
) |
Set or reset instance properties.
Usage Example: $page->set('X-Priority', '3');
public
string | $name | |
mixed | $value | NOTE: will not work with arrays, there are no arrays to set/reset |
phpmailerException |
Definiert in Zeile 3158 der Datei class.phpmailer.php.
Benutzt lang() und setError().
|
protected |
Add an error message to the error container. protected
string | $msg |
Definiert in Zeile 2770 der Datei class.phpmailer.php.
Benutzt lang().
Wird benutzt von addAnAddress(), addAttachment(), addEmbeddedImage(), encodeFile(), encodeString(), postSend(), preSend(), send(), set(), setFrom() und smtpSend().
setFrom | ( | $address, | |
$name = '' , |
|||
$auto = true |
|||
) |
Set the From and FromName properties.
string | $address | |
string | $name | |
boolean | $auto | Whether to also set the Sender address, defaults to true |
phpmailerException |
Definiert in Zeile 825 der Datei class.phpmailer.php.
Benutzt edebug(), lang(), setError() und validateAddress().
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) |
Definiert in Zeile 1393 der Datei class.phpmailer.php.
Benutzt $PHPMAILER_LANG.
Wird benutzt von lang().
|
protected |
Set the message type. PHPMailer only supports some preset message types, not arbitrary MIME structures. protected
Definiert in Zeile 2018 der Datei class.phpmailer.php.
Benutzt alternativeExists(), attachmentExists() und inlineImageExists().
Wird benutzt von preSend().
setWordWrap | ( | ) |
Set the body wrapping. public
Definiert in Zeile 1619 der Datei class.phpmailer.php.
Benutzt wrapText().
Wird benutzt von createBody().
sign | ( | $cert_filename, | |
$key_filename, | |||
$key_pass | |||
) |
Set the public and private key files and password for S/MIME signing. public
string | $cert_filename | |
string | $key_filename | |
string | $key_pass | Password for private key |
Definiert in Zeile 3209 der Datei class.phpmailer.php.
smtpClose | ( | ) |
Close the active SMTP session if one exists.
Definiert in Zeile 1374 der Datei class.phpmailer.php.
Wird benutzt von __destruct().
smtpConnect | ( | $options = array() ) |
Initiate a connection to an SMTP server. Returns false if the operation failed.
array | $options | An array of options compatible with stream_context_create() SMTP public |
phpmailerException |
Definiert in Zeile 1281 der Datei class.phpmailer.php.
Benutzt $Helo, $Port, getSMTPInstance(), lang() und serverHostname().
Wird benutzt von smtpSend().
|
protected |
Send mail via SMTP. Returns false if there is a bad MAIL FROM, RCPT, or DATA input. Uses the PHPMailerSMTP class by default.
string | $header | The message headers |
string | $body | The message body |
phpmailerException | SMTP protected |
Definiert in Zeile 1211 der Datei class.phpmailer.php.
Benutzt $bcc, $cc, $to, doCallback(), lang(), setError() und smtpConnect().
Wird benutzt von postSend().
textLine | ( | $value) |
Return a formatted mail line. public
string | $value |
Definiert in Zeile 2054 der Datei class.phpmailer.php.
Benutzt $LE.
Wird benutzt von createBody(), getBoundary() und getMailMIME().
utf8CharBoundary | ( | $encodedText, | |
$maxLength | |||
) |
Find the last character boundary prior to $maxLength in a utf-8 quoted (printable) encoded string. Original written by Colin Brown. public
string | $encodedText | utf-8 QP text |
integer | $maxLength | find last character boundary prior to this length |
Definiert in Zeile 1581 der Datei class.phpmailer.php.
Wird benutzt von wrapText().
|
static |
Check that a string looks like an email address.
string | $address | The email address to check |
string | $patternselect | A selector for the validation pattern to use :
|
public
Uses the same RFC5322 regex on which FILTER_VALIDATE_EMAIL is based, but allows dotless domains. 2009-2010 Michael Rushton Feel free to use and redistribute this code. But please keep this copyright notice. This is the pattern used in the HTML5 spec for validation of 'email' type form input elements. http://www.whatwg.org/specs/web-apps/current-work/#e-mail-state-(type=email)
Definiert in Zeile 873 der Datei class.phpmailer.php.
Wird benutzt von addAnAddress() und setFrom().
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 |
integer | $length | The line length to wrap to |
boolean | $qp_mode | Whether to run in Quoted-Printable mode public |
Definiert in Zeile 1493 der Datei class.phpmailer.php.
Benutzt $LE, fixEOL() und utf8CharBoundary().
Wird benutzt von encodeHeader() und setWordWrap().
$action_function = '' |
Callback Action function name.
The function that handles the result of the send email action. It is called out by send() for each email sent.
Value can be any php callable: http://www.php.net/is_callable
Parameters: boolean $result result of the send action string $to email address of the recipient string $cc cc email addresses string $bcc bcc email addresses string $subject the subject string $body the email body string $from email address of sender string
Definiert in Zeile 422 der Datei class.phpmailer.php.
|
protected |
An array of all kinds of addresses. Includes all of $to, $cc, $bcc, $replyto array protected
Definiert in Zeile 472 der Datei class.phpmailer.php.
Wird benutzt von getAllRecipientAddresses().
$AllowEmpty = false |
Whether to allow sending messages with an empty body. boolean
Definiert in Zeile 361 der Datei class.phpmailer.php.
$AltBody = '' |
The plain-text message body. This body can be read by mail clients that do not have HTML email capability such as mutt & Eudora. Clients that can read HTML will view the normal Body. string
Definiert in Zeile 117 der Datei class.phpmailer.php.
|
protected |
The array of attachments. array protected
Definiert in Zeile 479 der Datei class.phpmailer.php.
Wird benutzt von attachAll(), attachmentExists(), getAttachments() und inlineImageExists().
$AuthType = '' |
SMTP auth type. Options are LOGIN (default), PLAIN, NTLM, CRAM-MD5 string
Definiert in Zeile 274 der Datei class.phpmailer.php.
|
protected |
The array of 'bcc' addresses. array protected
Definiert in Zeile 457 der Datei class.phpmailer.php.
Wird benutzt von clearBCCs(), doCallback(), getBccAddresses() und smtpSend().
$Body = '' |
An HTML or plain text message body. If HTML then call isHTML(true). string
Definiert in Zeile 108 der Datei class.phpmailer.php.
Wird benutzt von msgHTML().
|
protected |
The array of MIME boundary strings. array protected
Definiert in Zeile 507 der Datei class.phpmailer.php.
Wird benutzt von attachAll(), endBoundary() und getBoundary().
|
protected |
The array of 'cc' addresses. array protected
Definiert in Zeile 450 der Datei class.phpmailer.php.
Wird benutzt von clearCCs(), doCallback(), getCcAddresses() und smtpSend().
$CharSet = 'iso-8859-1' |
The character set of the message. string
Definiert in Zeile 47 der Datei class.phpmailer.php.
Wird benutzt von createBody() und getBoundary().
$ConfirmReadingTo = '' |
The email address that a reading confirmation should be sent to. string
Definiert in Zeile 188 der Datei class.phpmailer.php.
$ContentType = 'text/plain' |
The MIME Content-type of the message. string
Definiert in Zeile 53 der Datei class.phpmailer.php.
Wird benutzt von getBoundary().
|
protected |
The array of custom headers. array protected
Definiert in Zeile 486 der Datei class.phpmailer.php.
$Debugoutput = 'echo' |
How to handle debug output. Options:
echo
Output plain-text as-is, appropriate for CLIhtml
Output escaped, line breaks converted to <br>
, appropriate for browser outputerror_log
Output to error log as configured in php.iniAlternatively, you can provide a callable expecting two params: a message string and the debug level: $mail->Debugoutput = function($str, $level) {echo "debug level $level; message: $str";};
string|callable
Definiert in Zeile 324 der Datei class.phpmailer.php.
$DKIM_domain = '' |
Definiert in Zeile 396 der Datei class.phpmailer.php.
$DKIM_identity = '' |
DKIM Identity. Usually the email address used as the source of the email string
Definiert in Zeile 382 der Datei class.phpmailer.php.
$DKIM_passphrase = '' |
DKIM passphrase. Used if your key is encrypted. string
Definiert in Zeile 389 der Datei class.phpmailer.php.
$DKIM_private = '' |
DKIM private key file path. string
Definiert in Zeile 402 der Datei class.phpmailer.php.
$DKIM_selector = '' |
DKIM selector. string
Definiert in Zeile 375 der Datei class.phpmailer.php.
$do_verp = false |
Whether to generate VERP addresses on send. Only applicable when sending via SMTP. http://www.postfix.org/VERP_README.html Postfix VERP info boolean
Definiert in Zeile 355 der Datei class.phpmailer.php.
$Encoding = '8bit' |
The message encoding. Options: "8bit", "7bit", "binary", "base64", and "quoted-printable". string
Definiert in Zeile 60 der Datei class.phpmailer.php.
Wird benutzt von createBody() und getBoundary().
|
protected |
The number of errors encountered. integer protected
Definiert in Zeile 521 der Datei class.phpmailer.php.
$ErrorInfo = '' |
Holds the most recent mailer error message. string
Definiert in Zeile 66 der Datei class.phpmailer.php.
|
protected |
Whether to throw exceptions for errors. boolean protected
Definiert in Zeile 550 der Datei class.phpmailer.php.
Wird benutzt von __construct().
$From = 'root@localhost' |
The From email address for the message. string
Definiert in Zeile 72 der Datei class.phpmailer.php.
$FromName = 'Root User' |
The From name of the message. string
Definiert in Zeile 78 der Datei class.phpmailer.php.
$Helo = '' |
The SMTP HELO of the message. Default is $Hostname. string
Definiert in Zeile 239 der Datei class.phpmailer.php.
Wird benutzt von smtpConnect().
$Host = 'localhost' |
SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host by using this format: hostname:port. You can also specify encryption type, for example: (e.g. "tls://smtp1.example.com:587;ssl://smtp2.example.com:465"). Hosts will be tried in order. string
Definiert in Zeile 224 der Datei class.phpmailer.php.
$Hostname = '' |
The hostname to use in Message-Id and Received headers and as default HELO string. If empty, the value returned by SERVER_NAME is used or 'localhost.localdomain'. string
Definiert in Zeile 197 der Datei class.phpmailer.php.
Wird benutzt von serverHostname().
$Ical = '' |
An iCal message part body. Only supported in simple alt or alt_inline message types To generate iCal events, use the bundled extras/EasyPeasyICS.php class or iCalcreator http://kigkonsult.se/iCalcreator/ string
Definiert in Zeile 127 der Datei class.phpmailer.php.
|
protected |
The array of available languages. array protected
Definiert in Zeile 514 der Datei class.phpmailer.php.
Wird benutzt von getTranslations().
|
protected |
The most recent Message-ID (including angular brackets). string protected
Definiert in Zeile 493 der Datei class.phpmailer.php.
Wird benutzt von getLastMessageID().
$LE = "\n" |
The default line ending.
Definiert in Zeile 369 der Datei class.phpmailer.php.
Wird benutzt von addrAppend(), attachAll(), base64EncodeWrapMB(), createBody(), encodeString(), endBoundary(), getBoundary(), getMailMIME(), headerLine(), textLine() und wrapText().
$Mailer = 'mail' |
Which method to use to send mail. Options: "mail", "sendmail", or "smtp". string
Definiert in Zeile 161 der Datei class.phpmailer.php.
|
protected |
Extra headers that createHeader() doesn't fold in. string protected
Definiert in Zeile 148 der Datei class.phpmailer.php.
|
protected |
The message's MIME type. string protected
Definiert in Zeile 500 der Datei class.phpmailer.php.
$MessageDate = '' |
The message Date to be used in the Date header. If empty, the current date will be added. string
Definiert in Zeile 211 der Datei class.phpmailer.php.
$MessageID = '' |
An ID to be used in the Message-Id header. If empty, a unique id will be generated. string
Definiert in Zeile 204 der Datei class.phpmailer.php.
Wird benutzt von createHeader().
|
protected |
The complete compiled MIME message body. protected string
Definiert in Zeile 134 der Datei class.phpmailer.php.
Wird benutzt von getSentMIMEMessage().
|
protected |
The complete compiled MIME message headers. string protected
Definiert in Zeile 141 der Datei class.phpmailer.php.
$Password = '' |
SMTP password. string
Definiert in Zeile 267 der Datei class.phpmailer.php.
$PluginDir = '' |
Path to PHPMailer plugins. Useful if the SMTP class is not in the PHP include path. string
Definiert in Zeile 182 der Datei class.phpmailer.php.
$Port = 25 |
The default SMTP server port. integer Why is this needed when the SMTP class takes care of it?
Definiert in Zeile 231 der Datei class.phpmailer.php.
Wird benutzt von smtpConnect().
$Priority = 3 |
Email priority. Options: 1 = High, 3 = Normal, 5 = low. integer
Definiert in Zeile 41 der Datei class.phpmailer.php.
$Realm = '' |
SMTP realm. Used for NTLM auth string
Definiert in Zeile 281 der Datei class.phpmailer.php.
|
protected |
The array of reply-to names and addresses. array protected
Definiert in Zeile 464 der Datei class.phpmailer.php.
Wird benutzt von getReplyToAddresses().
$ReturnPath = '' |
The Return-Path of the message. If empty, it will be set to either From or Sender. string
Definiert in Zeile 95 der Datei class.phpmailer.php.
$Sender = '' |
The Sender email (Return-Path) of the message. If not empty, will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode. string
Definiert in Zeile 85 der Datei class.phpmailer.php.
$Sendmail = '/usr/sbin/sendmail' |
The path to the sendmail program. string
Definiert in Zeile 167 der Datei class.phpmailer.php.
|
protected |
The S/MIME certificate file path. string protected
Definiert in Zeile 528 der Datei class.phpmailer.php.
|
protected |
The S/MIME key file path. string protected
Definiert in Zeile 535 der Datei class.phpmailer.php.
|
protected |
The S/MIME password for the key. Used only if the key is encrypted. string protected
Definiert in Zeile 543 der Datei class.phpmailer.php.
$SingleTo = false |
Whether to split multiple to addresses into multiple messages or send them all in one message. boolean
Definiert in Zeile 339 der Datei class.phpmailer.php.
$SingleToArray = array() |
Storage for addresses when SingleTo is enabled. array This should really not be public
Definiert in Zeile 346 der Datei class.phpmailer.php.
|
protected |
An instance of the SMTP sender class. SMTP protected
Definiert in Zeile 436 der Datei class.phpmailer.php.
Wird benutzt von getSMTPInstance().
$SMTPAuth = false |
Whether to use SMTP authentication. Uses the Username and Password properties. boolean
Definiert in Zeile 255 der Datei class.phpmailer.php.
$SMTPDebug = 0 |
SMTP class debug output mode. Debug output level. Options:
0
No output1
Commands2
Data and commands3
As 2 plus connection status4
Low-level data output integer Definiert in Zeile 308 der Datei class.phpmailer.php.
$SMTPKeepAlive = false |
Whether to keep SMTP connection open after each message. If this is set to true then to close the connection requires an explicit call to smtpClose(). boolean
Definiert in Zeile 332 der Datei class.phpmailer.php.
$SMTPSecure = '' |
The secure connection prefix. Options: "", "ssl" or "tls" string
Definiert in Zeile 246 der Datei class.phpmailer.php.
$Subject = '' |
The Subject of the message. string
Definiert in Zeile 101 der Datei class.phpmailer.php.
$Timeout = 10 |
The SMTP server timeout in seconds. integer
Definiert in Zeile 294 der Datei class.phpmailer.php.
|
protected |
The array of 'to' addresses. array protected
Definiert in Zeile 443 der Datei class.phpmailer.php.
Wird benutzt von clearAddresses(), DKIM_Add(), doCallback(), getToAddresses(), mailPassthru(), mailSend() und smtpSend().
$Username = '' |
SMTP username. string
Definiert in Zeile 261 der Datei class.phpmailer.php.
$UseSendmailOptions = true |
Whether mail() uses a fully sendmail-compatible MTA. One which supports sendmail's "-oi -f" options. boolean
Definiert in Zeile 174 der Datei class.phpmailer.php.
$Version = '5.2.9' |
The PHPMailer Version number. string
Definiert in Zeile 34 der Datei class.phpmailer.php.
$WordWrap = 0 |
Word-wrap the message body to this number of chars. integer
Definiert in Zeile 154 der Datei class.phpmailer.php.
$Workstation = '' |
SMTP workstation. Used for NTLM auth string
Definiert in Zeile 288 der Datei class.phpmailer.php.
$XMailer = '' |
What to use in the X-Mailer header. Options: null for default, whitespace for none, or a string to use string
Definiert in Zeile 429 der Datei class.phpmailer.php.
const CRLF = "\r\n" |
SMTP RFC standard line ending.
Definiert in Zeile 570 der Datei class.phpmailer.php.
const STOP_CONTINUE = 1 |
Error severity: message, likely ok to continue processing.
Definiert in Zeile 560 der Datei class.phpmailer.php.
const STOP_CRITICAL = 2 |
Error severity: message, plus full stop, critical error reached.
Definiert in Zeile 565 der Datei class.phpmailer.php.
const STOP_MESSAGE = 0 |
Error severity: message only, continue processing.
Definiert in Zeile 555 der Datei class.phpmailer.php.