email
in package
E-Mail-Objekt
Tags
Table of Contents
- $attachments : array<string|int, mixed>
- E-Mail-Anhänge
- $config : config
- Config Object
- $from : string
- Absender
- $headers : array<string|int, mixed>
- Headers
- $html : bool
- HTML-E-Mail-Status
- $mailer : PHPMailer
- PHPMailer Object
- $subject : string
- Betreff
- $text : string
- E-Mail-Text
- $to : string
- Empfänger
- __construct() : mixed
- Konstruktor
- checkSmtp() : bool
- SMTP-Zugangsdaten testen
- fromTemplate() : bool
- getAttachments() : array<string|int, mixed>
- Array mit Dateipfaden der Anhänge auslesen
- getAuthenticationTypes() : array<string|int, mixed>
- Return SMTP authentication types
- getEncryptions() : array<string|int, mixed>
- Return SMTP encryption modes
- getFrom() : sring
- Absender auslesen
- getSubject() : sring
- Betreff auslesen
- getText() : sring
- E-Mail-Inhalt auslesen
- getTo() : sring
- Empfänger auslesen
- isHtml() : bool
- HTMl-E-Mail ja/nein
- setAttachments() : mixed
- Array mit Pfaden der Anhänge setzen
- setFrom() : mixed
- Absender setzen
- setHtml() : mixed
- E-Mail- als HTML-E-Mail markieren
- setSubject() : mixed
- Betreff setzen
- setText() : mixed
- E-Mail-Inhalt setzen
- setTo() : mixed
- Empfänger setzen
- submit() : bool
- Versendet E-Mail
- getMailerObj() : bool
- Erzeugt neues PHPMailer-Objekt
- initSmtpSettings() : bool
- submitPhp() : bool
- E-Mail versenden via PHP versenden
- submitSmtp() : bool
- E-Mail via SMTP versenden
Properties
$attachments
E-Mail-Anhänge
private
array<string|int, mixed>
$attachments
= []
Tags
$config
Config Object
private
config
$config
$from
Absender
private
string
$from
= ''
$headers
Headers
private
array<string|int, mixed>
$headers
= []
$html
HTML-E-Mail-Status
private
bool
$html
= false
$mailer
PHPMailer Object
private
PHPMailer
$mailer
= null
$subject
Betreff
private
string
$subject
= ''
$text
E-Mail-Text
private
string
$text
= ''
$to
Empfänger
private
string
$to
= ''
Methods
__construct()
Konstruktor
public
__construct(sring $to, sring $subject, sring|array<string|int, mixed> $text[, sring $from = false ][, bool $html = false ]) : mixed
Parameters
- $to : sring
-
Empfänger-Adresse
- $subject : sring
-
Betreff
- $text : sring|array<string|int, mixed>
-
E-Mail-Inhalt
- $from : sring = false
-
Absender-Adresse, Default: fanpresscm@@hostdomain.xyz
- $html : bool = false
-
enthält $text HTML-Code ja/nein
Return values
mixed —checkSmtp()
SMTP-Zugangsdaten testen
public
checkSmtp() : bool
Tags
Return values
bool —fromTemplate()
public
fromTemplate(string $path[, array<string|int, mixed> $variables = [] ][, bool $fromData = false ]) : bool
Parameters
- $path : string
- $variables : array<string|int, mixed> = []
- $fromData : bool = false
Tags
Return values
bool —getAttachments()
Array mit Dateipfaden der Anhänge auslesen
public
getAttachments() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getAuthenticationTypes()
Return SMTP authentication types
public
static getAuthenticationTypes() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getEncryptions()
Return SMTP encryption modes
public
static getEncryptions() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getFrom()
Absender auslesen
public
getFrom() : sring
Return values
sring —getSubject()
Betreff auslesen
public
getSubject() : sring
Return values
sring —getText()
E-Mail-Inhalt auslesen
public
getText() : sring
Return values
sring —getTo()
Empfänger auslesen
public
getTo() : sring
Return values
sring —isHtml()
HTMl-E-Mail ja/nein
public
isHtml() : bool
Return values
bool —setAttachments()
Array mit Pfaden der Anhänge setzen
public
setAttachments(array<string|int, mixed> $attachments) : mixed
Parameters
- $attachments : array<string|int, mixed>
Tags
Return values
mixed —setFrom()
Absender setzen
public
setFrom(sring $from) : mixed
Parameters
- $from : sring
Return values
mixed —setHtml()
E-Mail- als HTML-E-Mail markieren
public
setHtml(bool $html) : mixed
Parameters
- $html : bool
Return values
mixed —setSubject()
Betreff setzen
public
setSubject(sring $subject) : mixed
Parameters
- $subject : sring
Return values
mixed —setText()
E-Mail-Inhalt setzen
public
setText(sring $text) : mixed
Parameters
- $text : sring
Return values
mixed —setTo()
Empfänger setzen
public
setTo(sring $to) : mixed
Parameters
- $to : sring
Return values
mixed —submit()
Versendet E-Mail
public
submit() : bool
Return values
bool —getMailerObj()
Erzeugt neues PHPMailer-Objekt
private
getMailerObj() : bool
Tags
Return values
bool —initSmtpSettings()
private
initSmtpSettings() : bool
Tags
Return values
bool —submitPhp()
E-Mail versenden via PHP versenden
private
submitPhp() : bool
Tags
Return values
bool —submitSmtp()
E-Mail via SMTP versenden
private
submitSmtp() : bool