PHPMailer Klassenreferenz

Ö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)
 

Ausführliche Beschreibung

Definiert in Zeile 28 der Datei class.phpmailer.php.

Beschreibung der Konstruktoren und Destruktoren

__construct (   $exceptions = false)

Constructor.

Parameter
boolean$exceptionsShould 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().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Dokumentation der Elementfunktionen

static _mime_types (   $ext = '')
static

Get the MIME type for a file extension.

Parameter
string$extFile extension public
Rückgabe
string MIME type of file.

Definiert in Zeile 2984 der Datei class.phpmailer.php.

addAddress (   $address,
  $name = '' 
)

Add a "To" address.

Parameter
string$address
string$name
Rückgabe
boolean true on success, false if address already used

Definiert in Zeile 732 der Datei class.phpmailer.php.

Benutzt addAnAddress().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

addAnAddress (   $kind,
  $address,
  $name = '' 
)
protected

Add an address to one of the recipient arrays. Addresses that have been added already return false, but do not throw exceptions

Parameter
string$kindOne of 'to', 'cc', 'bcc', 'ReplyTo'
string$addressThe email address to send to
string$name
Ausnahmebehandlung
phpmailerException
Rückgabe
boolean true on success, false if address already used or invalid in some way protected

Definiert in Zeile 782 der Datei class.phpmailer.php.

Benutzt edebug(), lang(), setError() und validateAddress().

Wird benutzt von addAddress(), addBCC(), addCC() und addReplyTo().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

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.

Parameter
string$pathPath to the attachment.
string$nameOverrides the attachment name.
string$encodingFile encoding (see $Encoding).
string$typeFile extension (MIME) type.
string$dispositionDisposition to use
Ausnahmebehandlung
phpmailerException
Rückgabe
boolean

Definiert in Zeile 2070 der Datei class.phpmailer.php.

Benutzt edebug(), lang() und setError().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

addBCC (   $address,
  $name = '' 
)

Add a "BCC" address.

Zu beachten
: This function works with the SMTP mailer on win32, not with the "mail" mailer.
Parameter
string$address
string$name
Rückgabe
boolean true on success, false if address already used

Definiert in Zeile 756 der Datei class.phpmailer.php.

Benutzt addAnAddress().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

addCC (   $address,
  $name = '' 
)

Add a "CC" address.

Zu beachten
: This function works with the SMTP mailer on win32, not with the "mail" mailer.
Parameter
string$address
string$name
Rückgabe
boolean true on success, false if address already used

Definiert in Zeile 744 der Datei class.phpmailer.php.

Benutzt addAnAddress().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

addCustomHeader (   $name,
  $value = null 
)

Add a custom header. $name value can be overloaded to contain both header name and value (name:value) public

Parameter
string$nameCustom header name
string$valueHeader value
Rückgabe
void

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.

Parameter
string$pathPath to the attachment.
string$cidContent ID of the attachment; Use this to reference the content when using an embedded image in HTML.
string$nameOverrides the attachment name.
string$encodingFile encoding (see $Encoding).
string$typeFile MIME type.
string$dispositionDisposition to use
Rückgabe
boolean True on successfully adding an attachment

Definiert in Zeile 2579 der Datei class.phpmailer.php.

Benutzt lang() und setError().

Wird benutzt von msgHTML().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

addrAppend (   $type,
  $addr 
)

Create recipient headers. public

Parameter
string$type
array$addrAn 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.nosp@m.xamp.nosp@m.le.co.nosp@m.m', 'Joe User'), array('zoe@e.nosp@m.xamp.nosp@m.le.co.nosp@m.m', 'Zoe User'))
Rückgabe
string

Definiert in Zeile 1455 der Datei class.phpmailer.php.

Benutzt $LE und addrFormat().

Wird benutzt von createHeader() und preSend().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

addReplyTo (   $address,
  $name = '' 
)

Add a "Reply-to" address.

Parameter
string$address
string$name
Rückgabe
boolean

Definiert in Zeile 767 der Datei class.phpmailer.php.

Benutzt addAnAddress().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

addrFormat (   $addr)

Format an address for use in a message header. public

Parameter
array$addrA 2-element indexed array, element 0 containing an address, element 1 containing a name like array('joe@e.nosp@m.xamp.nosp@m.le.co.nosp@m.m', 'Joe User')
Rückgabe
string

Definiert in Zeile 1471 der Datei class.phpmailer.php.

Benutzt encodeHeader() und secureHeader().

Wird benutzt von addrAppend(), createHeader() und mailSend().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

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.

Parameter
string$stringString attachment data.
string$filenameName of the attachment.
string$encodingFile encoding (see $Encoding).
string$typeFile extension (MIME) type.
string$dispositionDisposition to use
Rückgabe
void

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'.

Parameter
string$stringThe attachment binary data.
string$cidContent ID of the attachment; Use this to reference the content when using an embedded image in HTML.
string$name
string$encodingFile encoding (see $Encoding).
string$typeMIME type.
string$dispositionDisposition to use
Rückgabe
boolean True on successfully adding an attachment

Definiert in Zeile 2624 der Datei class.phpmailer.php.

Wird benutzt von msgHTML().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

alternativeExists ( )

Check if this message has an alternative body set.

Rückgabe
boolean

Definiert in Zeile 2684 der Datei class.phpmailer.php.

Wird benutzt von setMessageType().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

attachAll (   $disposition_type,
  $boundary 
)
protected

Attach all file, string, and binary attachments to the message. Returns an empty string on failure. protected

Parameter
string$disposition_type
string$boundary
Rückgabe
string

Definiert in Zeile 2126 der Datei class.phpmailer.php.

Benutzt $attachment, $boundary, $LE, encodeFile(), encodeHeader(), encodeString(), isError() und secureHeader().

Wird benutzt von createBody().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

attachmentExists ( )

Check if an attachment (non-inline) is present.

Rückgabe
boolean

Definiert in Zeile 2670 der Datei class.phpmailer.php.

Benutzt $attachment.

Wird benutzt von setMessageType().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

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().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

clearAddresses ( )

Clear all To recipients.

Rückgabe
void

Definiert in Zeile 2693 der Datei class.phpmailer.php.

Benutzt $to.

clearAllRecipients ( )

Clear all recipient types.

Rückgabe
void

Definiert in Zeile 2738 der Datei class.phpmailer.php.

clearAttachments ( )

Clear all filesystem, string, and binary attachments.

Rückgabe
void

Definiert in Zeile 2750 der Datei class.phpmailer.php.

clearBCCs ( )

Clear all BCC recipients.

Rückgabe
void

Definiert in Zeile 2717 der Datei class.phpmailer.php.

Benutzt $bcc.

clearCCs ( )

Clear all CC recipients.

Rückgabe
void

Definiert in Zeile 2705 der Datei class.phpmailer.php.

Benutzt $cc.

clearCustomHeaders ( )

Clear all custom headers.

Rückgabe
void

Definiert in Zeile 2759 der Datei class.phpmailer.php.

clearReplyTos ( )

Clear all ReplyTo recipients.

Rückgabe
void

Definiert in Zeile 2729 der Datei class.phpmailer.php.

createBody ( )

Assemble the message body. Returns an empty string on failure. public

Ausnahmebehandlung
phpmailerException
Rückgabe
string The assembled message body

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().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

createHeader ( )

Assemble message headers. public

Rückgabe
string The assembled headers

Definiert in Zeile 1643 der Datei class.phpmailer.php.

Benutzt $MessageID, addrAppend(), addrFormat(), encodeHeader(), getMailMIME(), headerLine() und secureHeader().

Wird benutzt von preSend().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

DKIM_Add (   $headers_line,
  $subject,
  $body 
)

Create the DKIM header and body in a new message header. public

Parameter
string$headers_lineHeader lines
string$subjectSubject
string$bodyBody
Rückgabe
string

Definiert in Zeile 3312 der Datei class.phpmailer.php.

Benutzt $to, DKIM_BodyC(), DKIM_HeaderC(), DKIM_QP() und DKIM_Sign().

Wird benutzt von preSend().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

DKIM_BodyC (   $body)

Generate a DKIM canonicalization body. public

Parameter
string$bodyMessage Body
Rückgabe
string

Definiert in Zeile 3289 der Datei class.phpmailer.php.

Wird benutzt von DKIM_Add().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

DKIM_HeaderC (   $signHeader)

Generate a DKIM canonicalization header. public

Parameter
string$signHeaderHeader
Rückgabe
string

Definiert in Zeile 3269 der Datei class.phpmailer.php.

Wird benutzt von DKIM_Add().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

DKIM_QP (   $txt)

Quoted-Printable-encode a DKIM header. public

Parameter
string$txt
Rückgabe
string

Definiert in Zeile 3222 der Datei class.phpmailer.php.

Wird benutzt von DKIM_Add().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

DKIM_Sign (   $signHeader)

Generate a DKIM signature. public

Parameter
string$signHeader
Ausnahmebehandlung
phpmailerException
Rückgabe
string

Definiert in Zeile 3243 der Datei class.phpmailer.php.

Benutzt lang().

Wird benutzt von DKIM_Add().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

doCallback (   $isSent,
  $to,
  $cc,
  $bcc,
  $subject,
  $body,
  $from 
)
protected

Perform a callback.

Parameter
boolean$isSent
array$to
array$cc
array$bcc
string$subject
string$body
string$from

Definiert in Zeile 3430 der Datei class.phpmailer.php.

Benutzt $bcc, $cc und $to.

Wird benutzt von mailSend(), sendmailSend() und smtpSend().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

edebug (   $str)
protected

Output debugging info via user-defined method. Only generates output if SMTP debug output is enabled (

Siehe auch
SMTP::$do_debug).
PHPMailer::$Debugoutput
PHPMailer::$SMTPDebug
Parameter
string$str

Definiert in Zeile 627 der Datei class.phpmailer.php.

Wird benutzt von addAnAddress(), addAttachment(), postSend() und setFrom().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

encodeFile (   $path,
  $encoding = 'base64' 
)
protected

Encode a file attachment in requested format. Returns an empty string on failure.

Parameter
string$pathThe full path to the file
string$encodingThe encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable'
Ausnahmebehandlung
phpmailerException
Siehe auch
EncodeFile(encodeFile protected
Rückgabe
string

Definiert in Zeile 2235 der Datei class.phpmailer.php.

Benutzt encodeString(), lang() und setError().

Wird benutzt von attachAll().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

encodeHeader (   $str,
  $position = 'text' 
)

Encode a header string optimally. Picks shortest of Q, B, quoted-printable or none. public

Parameter
string$str
string$position
Rückgabe
string

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().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

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().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

encodeQP (   $string,
  $line_max = 76 
)

Encode a string in quoted-printable format. According to RFC2045 section 6.7. public

Parameter
string$stringThe text to encode
integer$line_maxNumber of chars allowed on a line before wrapping
Rückgabe
string Adapted from this comment

Definiert in Zeile 2446 der Datei class.phpmailer.php.

Benutzt fixEOL().

Wird benutzt von encodeQPphp() und encodeString().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

encodeQPphp (   $string,
  $line_max = 76,
  $space_conv = false 
)

Backward compatibility wrapper for an old QP encoding function that was removed.

Siehe auch
PHPMailer::encodeQP() public
Parameter
string$string
integer$line_max
boolean$space_conv
Rückgabe
string
Veraltet:
Use encodeQP instead.
Parameter
$space_convPhpUnusedParameterInspection

Definiert in Zeile 2471 der Datei class.phpmailer.php.

Benutzt encodeQP().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

encodeString (   $str,
  $encoding = 'base64' 
)

Encode a string in requested format. Returns an empty string on failure.

Parameter
string$strThe text to encode
string$encodingThe encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable' public
Rückgabe
string

Definiert in Zeile 2276 der Datei class.phpmailer.php.

Benutzt $LE, encodeQP(), fixEOL(), lang() und setError().

Wird benutzt von attachAll(), createBody() und encodeFile().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

endBoundary (   $boundary)
protected

Return the end of a message boundary. protected

Parameter
string$boundary
Rückgabe
string

Definiert in Zeile 2006 der Datei class.phpmailer.php.

Benutzt $boundary und $LE.

Wird benutzt von createBody().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

static filenameToType (   $filename)
static

Map a file name to a MIME type. Defaults to 'application/octet-stream', i.e.. arbitrary binary data.

Parameter
string$filenameA file name or full path, does not need to exist as a file
Rückgabe
string

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

Parameter
string$strString to fixEOL
Rückgabe
string

Definiert in Zeile 2853 der Datei class.phpmailer.php.

Wird benutzt von encodeQP(), encodeString() und wrapText().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

getAllRecipientAddresses ( )

Allows for public read access to 'all_recipients' property. public

Rückgabe
array

Definiert in Zeile 3415 der Datei class.phpmailer.php.

Benutzt $all_recipients.

getAttachments ( )

Return the array of attachments.

Rückgabe
array

Definiert in Zeile 2113 der Datei class.phpmailer.php.

Benutzt $attachment.

getBccAddresses ( )

Allows for public read access to 'bcc' property. public

Rückgabe
array

Definiert in Zeile 3395 der Datei class.phpmailer.php.

Benutzt $bcc.

getBoundary (   $boundary,
  $charSet,
  $contentType,
  $encoding 
)
protected

Return the start of a message boundary. protected

Parameter
string$boundary
string$charSet
string$contentType
string$encoding
Rückgabe
string

Definiert in Zeile 1976 der Datei class.phpmailer.php.

Benutzt $boundary, $CharSet, $ContentType, $Encoding, $LE, headerLine() und textLine().

Wird benutzt von createBody().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

getCcAddresses ( )

Allows for public read access to 'cc' property. public

Rückgabe
array

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.

Rückgabe
string

Definiert in Zeile 854 der Datei class.phpmailer.php.

Benutzt $lastMessageID.

getMailMIME ( )

Get the message MIME type headers. public

Rückgabe
string

Definiert in Zeile 1744 der Datei class.phpmailer.php.

Benutzt $LE, headerLine() und textLine().

Wird benutzt von createBody() und createHeader().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

getReplyToAddresses ( )

Allows for public read access to 'ReplyTo' property. public

Rückgabe
array

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().

Siehe auch
PHPMailer::preSend() public
Rückgabe
string

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

Rückgabe
SMTP

Definiert in Zeile 1191 der Datei class.phpmailer.php.

Benutzt $smtp.

Wird benutzt von smtpConnect().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

getToAddresses ( )

Allows for public read access to 'to' property. public

Rückgabe
array

Definiert in Zeile 3375 der Datei class.phpmailer.php.

Benutzt $to.

getTranslations ( )

Get the array of strings for the current language.

Rückgabe
array

Definiert in Zeile 1440 der Datei class.phpmailer.php.

Benutzt $language.

has8bitChars (   $text)

Does a string contain any 8-bit chars (in any charset)?

Parameter
string$text
Rückgabe
boolean

Definiert in Zeile 2389 der Datei class.phpmailer.php.

Wird benutzt von createBody().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

hasMultiBytes (   $str)

Check if a string contains multi-byte characters. public

Parameter
string$strmulti-byte text to wrap encode
Rückgabe
boolean

Definiert in Zeile 2375 der Datei class.phpmailer.php.

Wird benutzt von encodeHeader().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

headerLine (   $name,
  $value 
)

Format a header line. public

Parameter
string$name
string$value
Rückgabe
string

Definiert in Zeile 2043 der Datei class.phpmailer.php.

Benutzt $LE.

Wird benutzt von createBody(), createHeader(), getBoundary(), getMailMIME() und preSend().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

html2text (   $html,
  $advanced = false 
)

Convert an HTML string into plain text.

Parameter
string$htmlThe HTML text to convert
boolean$advancedShould this use the more complex html2text converter or just a simple one?
Rückgabe
string

Definiert in Zeile 2963 der Datei class.phpmailer.php.

Wird benutzt von msgHTML().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

inlineImageExists ( )

Check if an inline attachment is present. public

Rückgabe
boolean

Definiert in Zeile 2656 der Datei class.phpmailer.php.

Benutzt $attachment.

Wird benutzt von setMessageType().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

isError ( )

Check if an error occurred. public

Rückgabe
boolean True if an error did occur.

Definiert in Zeile 2841 der Datei class.phpmailer.php.

Wird benutzt von attachAll() und createBody().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

isHTML (   $isHtml = true)

Sets message type to HTML or plain.

Parameter
boolean$isHtmlTrue for HTML mode.
Rückgabe
void

Definiert in Zeile 667 der Datei class.phpmailer.php.

Wird benutzt von msgHTML().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

isMail ( )

Send messages using PHP's mail() function.

Rückgabe
void

Definiert in Zeile 689 der Datei class.phpmailer.php.

isQmail ( )

Send messages using qmail.

Rückgabe
void

Definiert in Zeile 714 der Datei class.phpmailer.php.

isSendmail ( )

Send messages using $Sendmail.

Rückgabe
void

Definiert in Zeile 698 der Datei class.phpmailer.php.

isSMTP ( )

Send messages using SMTP.

Rückgabe
void

Definiert in Zeile 680 der Datei class.phpmailer.php.

lang (   $key)
protected

Get an error message in the current language. protected

Parameter
string$key
Rückgabe
string

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().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

mailPassthru (   $to,
  $subject,
  $body,
  $header,
  $params 
)
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)

Parameter
string$toTo
string$subjectSubject
string$bodyMessage Body
string$headerAdditional Header(s)
string$paramsParams private
Rückgabe
boolean

Definiert in Zeile 604 der Datei class.phpmailer.php.

Benutzt $to, encodeHeader() und secureHeader().

Wird benutzt von mailSend().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

mailSend (   $header,
  $body 
)
protected

Send mail using the PHP mail() function.

Parameter
string$headerThe message headers
string$bodyThe 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().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

static mb_pathinfo (   $path,
  $options = null 
)
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

Parameter
string$messageHTML message string
string$basedirbaseline directory for path
boolean$advancedWhether to use the advanced HTML to text converter
Rückgabe
string $message

Definiert in Zeile 2894 der Datei class.phpmailer.php.

Benutzt $Body, addEmbeddedImage(), addStringEmbeddedImage(), html2text(), isHTML() und normalizeBreaks().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

static normalizeBreaks (   $text,
  $breaktype = "\r\n" 
)
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.

Parameter
string$text
string$breaktypeWhat kind of line break to use, defaults to CRLF
Rückgabe
string public

Definiert in Zeile 3196 der Datei class.phpmailer.php.

Wird benutzt von msgHTML().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

postSend ( )

Actually send a message. Send the email via the selected mechanism

Ausnahmebehandlung
phpmailerException
Rückgabe
boolean

Definiert in Zeile 1050 der Datei class.phpmailer.php.

Benutzt edebug(), mailSend(), sendmailSend(), setError() und smtpSend().

Wird benutzt von send().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

preSend ( )

Prepare a message for sending.

Ausnahmebehandlung
phpmailerException
Rückgabe
boolean

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().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

static rfcDate ( )
static

Return an RFC 822 formatted date. public

Rückgabe
string

Definiert in Zeile 2788 der Datei class.phpmailer.php.

secureHeader (   $str)

Strip newlines to prevent header injection. public

Parameter
string$str
Rückgabe
string

Definiert in Zeile 3181 der Datei class.phpmailer.php.

Wird benutzt von addrFormat(), attachAll(), createHeader(), mailPassthru() und preSend().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

send ( )

Create a message and send it. Uses the sending method specified by $Mailer.

Ausnahmebehandlung
phpmailerException
Rückgabe
boolean false on error - See the ErrorInfo property for details of the error.

Definiert in Zeile 960 der Datei class.phpmailer.php.

Benutzt postSend(), preSend() und setError().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

sendmailSend (   $header,
  $body 
)
protected

Send mail using the $Sendmail program.

Parameter
string$headerThe message headers
string$bodyThe message body
Siehe auch
PHPMailer::$Sendmail
Ausnahmebehandlung
phpmailerExceptionprotected
Rückgabe
boolean

Definiert in Zeile 1089 der Datei class.phpmailer.php.

Benutzt doCallback() und lang().

Wird benutzt von postSend().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

serverHostname ( )
protected

Get the server hostname. Returns 'localhost.localdomain' if unknown. protected

Rückgabe
string

Definiert in Zeile 2802 der Datei class.phpmailer.php.

Benutzt $Hostname.

Wird benutzt von smtpConnect().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

set (   $name,
  $value = '' 
)

Set or reset instance properties.

Usage Example: $page->set('X-Priority', '3');

public

Parameter
string$name
mixed$valueNOTE: will not work with arrays, there are no arrays to set/reset
Ausnahmebehandlung
phpmailerException
Rückgabe
boolean Should this not be using __set() magic function?

Definiert in Zeile 3158 der Datei class.phpmailer.php.

Benutzt lang() und setError().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

setError (   $msg)
protected

Add an error message to the error container. protected

Parameter
string$msg
Rückgabe
void

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().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

setFrom (   $address,
  $name = '',
  $auto = true 
)

Set the From and FromName properties.

Parameter
string$address
string$name
boolean$autoWhether to also set the Sender address, defaults to true
Ausnahmebehandlung
phpmailerException
Rückgabe
boolean

Definiert in Zeile 825 der Datei class.phpmailer.php.

Benutzt edebug(), lang(), setError() und validateAddress().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

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.

Parameter
string$langcodeISO 639-1 2-character language code (e.g. French is "fr")
string$lang_pathPath to the language file directory, with trailing separator (slash)
Rückgabe
boolean public

Definiert in Zeile 1393 der Datei class.phpmailer.php.

Benutzt $PHPMAILER_LANG.

Wird benutzt von lang().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

setMessageType ( )
protected

Set the message type. PHPMailer only supports some preset message types, not arbitrary MIME structures. protected

Rückgabe
void

Definiert in Zeile 2018 der Datei class.phpmailer.php.

Benutzt alternativeExists(), attachmentExists() und inlineImageExists().

Wird benutzt von preSend().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

setWordWrap ( )

Set the body wrapping. public

Rückgabe
void

Definiert in Zeile 1619 der Datei class.phpmailer.php.

Benutzt wrapText().

Wird benutzt von createBody().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

sign (   $cert_filename,
  $key_filename,
  $key_pass 
)

Set the public and private key files and password for S/MIME signing. public

Parameter
string$cert_filename
string$key_filename
string$key_passPassword for private key

Definiert in Zeile 3209 der Datei class.phpmailer.php.

smtpClose ( )

Close the active SMTP session if one exists.

Rückgabe
void

Definiert in Zeile 1374 der Datei class.phpmailer.php.

Wird benutzt von __destruct().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

smtpConnect (   $options = array())

Initiate a connection to an SMTP server. Returns false if the operation failed.

Parameter
array$optionsAn array of options compatible with stream_context_create() SMTP public
Ausnahmebehandlung
phpmailerException
Rückgabe
boolean

Definiert in Zeile 1281 der Datei class.phpmailer.php.

Benutzt $Helo, $Port, getSMTPInstance(), lang() und serverHostname().

Wird benutzt von smtpSend().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

smtpSend (   $header,
  $body 
)
protected

Send mail via SMTP. Returns false if there is a bad MAIL FROM, RCPT, or DATA input. Uses the PHPMailerSMTP class by default.

Siehe auch
PHPMailer::getSMTPInstance() to use a different class.
Parameter
string$headerThe message headers
string$bodyThe message body
Ausnahmebehandlung
phpmailerExceptionSMTP protected
Rückgabe
boolean

Definiert in Zeile 1211 der Datei class.phpmailer.php.

Benutzt $bcc, $cc, $to, doCallback(), lang(), setError() und smtpConnect().

Wird benutzt von postSend().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

textLine (   $value)

Return a formatted mail line. public

Parameter
string$value
Rückgabe
string

Definiert in Zeile 2054 der Datei class.phpmailer.php.

Benutzt $LE.

Wird benutzt von createBody(), getBoundary() und getMailMIME().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

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

Parameter
string$encodedTextutf-8 QP text
integer$maxLengthfind last character boundary prior to this length
Rückgabe
integer

Definiert in Zeile 1581 der Datei class.phpmailer.php.

Wird benutzt von wrapText().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

static validateAddress (   $address,
  $patternselect = 'auto' 
)
static

Check that a string looks like an email address.

Parameter
string$addressThe email address to check
string$patternselectA selector for the validation pattern to use :
  • auto Pick strictest one automatically;
  • pcre8 Use the squiloople.com pattern, requires PCRE > 8.0, PHP >= 5.3.2, 5.2.14;
  • pcre Use old PCRE implementation;
  • php Use PHP built-in FILTER_VALIDATE_EMAIL; same as pcre8 but does not allow 'dotless' domains;
  • 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.
Rückgabe
boolean

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().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

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.

Parameter
string$messageThe message to wrap
integer$lengthThe line length to wrap to
boolean$qp_modeWhether to run in Quoted-Printable mode public
Rückgabe
string

Definiert in Zeile 1493 der Datei class.phpmailer.php.

Benutzt $LE, fixEOL() und utf8CharBoundary().

Wird benutzt von encodeHeader() und setWordWrap().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

Dokumentation der Datenelemente

$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.

$all_recipients = array()
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.

$attachment = array()
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.

$bcc = array()
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().

$boundary = array()
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().

$cc = array()
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().

$CustomHeader = array()
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 CLI
  • html Output escaped, line breaks converted to <br>, appropriate for browser output
  • error_log Output to error log as configured in php.ini

Alternatively, 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

Siehe auch
SMTP::$Debugoutput

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().

$error_count = 0
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.

$exceptions = false
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

Siehe auch
PHPMailer::$Hostname

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.

$language = array()
protected

The array of available languages. array protected

Definiert in Zeile 514 der Datei class.phpmailer.php.

Wird benutzt von getTranslations().

$lastMessageID = ''
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.

Zu beachten
The default remains "\n". We force CRLF where we know it must be used via self::CRLF. string

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.

$mailHeader = ''
protected

Extra headers that createHeader() doesn't fold in. string protected

Definiert in Zeile 148 der Datei class.phpmailer.php.

$message_type = ''
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().

$MIMEBody = ''
protected

The complete compiled MIME message body. protected string

Definiert in Zeile 134 der Datei class.phpmailer.php.

Wird benutzt von getSentMIMEMessage().

$MIMEHeader = ''
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

Veraltet:
Should not be needed now there is an autoloader.

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.

$ReplyTo = array()
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

Veraltet:
Email senders should never set a return-path header; it's the receiver's job (RFC5321 section 4.4), so this no longer does anything. RFC5321 reference

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.

$sign_cert_file = ''
protected

The S/MIME certificate file path. string protected

Definiert in Zeile 528 der Datei class.phpmailer.php.

$sign_key_file = ''
protected

The S/MIME key file path. string protected

Definiert in Zeile 535 der Datei class.phpmailer.php.

$sign_key_pass = ''
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.

$smtp = null
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

Siehe auch
PHPMailer::$Username
PHPMailer::$Password

Definiert in Zeile 255 der Datei class.phpmailer.php.

$SMTPDebug = 0

SMTP class debug output mode. Debug output level. Options:

  • 0 No output
  • 1 Commands
  • 2 Data and commands
  • 3 As 2 plus connection status
  • 4 Low-level data output integer
    Siehe auch
    SMTP::$do_debug

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.

$to = array()
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.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:




Korrekturen, Hinweise und Ergänzungen

Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.