Class Email
- PHPMailer
-
Email
Direct known subclasses
License: GNU General Public License v2.0 only **********************************************************************************************
Class:
Email Mit dieser Klasse kann ein Email-Objekt erstellt und anschliessend verschickt werden.
Das Objekt wird erzeugt durch Aufruf des Konstruktors: Email()
Nun wird der Absender gesetzt: setSender($address, $name = '') Parameters: $address - Die Emailadresse $name - Der Name des Absenders (optional)
Nun koennen in beliebiger Reihenfolge und Anzahl Adressaten (To,Cc,Bcc) der Mail hinzugefuegt werden: (optional und mehrfach aufrufbar, es muss jedoch mindestens ein Empfaenger mittels einer der drei Funktionen gesetzt werden)
addRecipient($address, $name = '') addCopy($address, $name = '') addBlindCopy($address, $name = '') Parameters: $address - Die Emailadresse $name - Der Name des Absenders (optional)
Nun noch ein Subject setzen (optional): setSubject($subject) Parameters: $subject - Der Text des Betreffs
Der Email einen Text geben: function setText($text. ) Parameters: $text - Der Text der Mail
Bei Bedarf kann man sich eine Kopie der Mail zuschicken lassen (optional): setCopyToSenderFlag()
Sollen in der Kopie zusaetzlich noch alle Empfaenger aufgelistet werden, muss folgende Funktion auch noch aufgerufen werden (optional): function setListRecipientsFlag()
Methode gibt die maximale Groesse der Anhaenge zurueck size_unit : 'b' = byte; 'kb' = kilobyte; 'mb' = megabyte getMaxAttachementSize($size_unit = 'kb')
Soll die Nachricht als HTML Code interpretiert und versendet werden, muss folgende Funktion auch noch aufgerufen werden (optional): function sendDataAsHtml()
Am Ende muss die Mail natuerlich noch gesendet werden: function sendEmail();
Located at email.php
Methods summary
public
|
|
public
boolean
|
#
addBlindCopy( string $address, string $name = '' )
method adds BCC recipients to mail Bcc Empfänger werden ersteinmal gesammelt, damit später Päckchen verschickt werden können |
public
true|string
|
|
public
true|string
|
|
public static
float
|
|
public
true|string
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
#
setListRecipientsFlag( )
Funktion um das Flag zu setzen, dass in der Kopie alle Empfaenger der Mail aufgelistet werden |
public
|
#
setSenderInText( string $senderName, string $receivers )
Write a short text with sender information in text of email |
public
|
|
public
boolean|string
|
#
adminNotfication( string $subject, string $message, string $editorName = '', string $editorEmail = '' )
Mailbenachrichtigung für Admin |
public
true|string
|
Methods inherited from PHPMailer
DKIM_Add(),
DKIM_BodyC(),
DKIM_HeaderC(),
DKIM_QP(),
DKIM_Sign(),
__destruct(),
_mime_types(),
addAddress(),
addAnAddress(),
addAttachment(),
addBCC(),
addCC(),
addCustomHeader(),
addEmbeddedImage(),
addOrEnqueueAnAddress(),
addReplyTo(),
addStringAttachment(),
addStringEmbeddedImage(),
addrAppend(),
addrFormat(),
alternativeExists(),
attachAll(),
attachmentExists(),
base64EncodeWrapMB(),
clearAddresses(),
clearAllRecipients(),
clearAttachments(),
clearBCCs(),
clearCCs(),
clearCustomHeaders(),
clearQueuedAddresses(),
clearReplyTos(),
createBody(),
createHeader(),
doCallback(),
edebug(),
encodeFile(),
encodeHeader(),
encodeQ(),
encodeQP(),
encodeQPphp(),
encodeString(),
endBoundary(),
filenameToType(),
fixEOL(),
getAllRecipientAddresses(),
getAttachments(),
getBccAddresses(),
getBoundary(),
getCcAddresses(),
getCustomHeaders(),
getLastMessageID(),
getMailMIME(),
getReplyToAddresses(),
getSMTPInstance(),
getSentMIMEMessage(),
getToAddresses(),
getTranslations(),
has8bitChars(),
hasLineLongerThanMax(),
hasMultiBytes(),
headerLine(),
html2text(),
idnSupported(),
inlineImageExists(),
isError(),
isHTML(),
isMail(),
isQmail(),
isSMTP(),
isSendmail(),
lang(),
mailSend(),
mb_pathinfo(),
msgHTML(),
normalizeBreaks(),
parseAddresses(),
postSend(),
preSend(),
punyencodeAddress(),
rfcDate(),
secureHeader(),
send(),
sendmailSend(),
serverHostname(),
set(),
setError(),
setFrom(),
setLanguage(),
setMessageType(),
setWordWrap(),
sign(),
smtpClose(),
smtpConnect(),
smtpSend(),
textLine(),
utf8CharBoundary(),
validateAddress(),
wrapText()
Constants summary
Constants inherited from PHPMailer
CRLF,
MAX_LINE_LENGTH,
STOP_CONTINUE,
STOP_CRITICAL,
STOP_MESSAGE
Properties summary
private
|
$emText
|
|
private
|
$emHtmlText
|
|
private
|
$emSender
|
|
private
|
$emAddresses
|
|
private
|
$emCopyToSender
|
|
private
|
$emListRecipients
|
|
private
|
$emSendAsHTML
|
|
private
array
|
$emBccArray
|
#
array()
|
Properties inherited from PHPMailer
$AllowEmpty,
$AltBody,
$AuthType,
$Body,
$CharSet,
$ConfirmReadingTo,
$ContentType,
$CustomHeader,
$DKIM_domain,
$DKIM_identity,
$DKIM_passphrase,
$DKIM_private,
$DKIM_selector,
$Debugoutput,
$Encoding,
$ErrorInfo,
$From,
$FromName,
$Helo,
$Host,
$Hostname,
$Ical,
$LE,
$MIMEBody,
$MIMEHeader,
$Mailer,
$MessageDate,
$MessageID,
$Password,
$PluginDir,
$Port,
$Priority,
$Realm,
$RecipientsQueue,
$ReplyTo,
$ReplyToQueue,
$ReturnPath,
$SMTPAuth,
$SMTPAutoTLS,
$SMTPDebug,
$SMTPKeepAlive,
$SMTPOptions,
$SMTPSecure,
$Sender,
$Sendmail,
$SingleTo,
$SingleToArray,
$Subject,
$Timeout,
$UseSendmailOptions,
$Username,
$Version,
$WordWrap,
$Workstation,
$XMailer,
$action_function,
$all_recipients,
$attachment,
$bcc,
$boundary,
$cc,
$do_verp,
$error_count,
$exceptions,
$language,
$lastMessageID,
$mailHeader,
$message_type,
$sign_cert_file,
$sign_extracerts_file,
$sign_key_file,
$sign_key_pass,
$smtp,
$to,
$uniqueid