ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Class ilMimeMail. More...
Public Member Functions | |
__construct () | |
ilMimeMail constructor. More... | |
Subject (string $subject, bool $a_add_prefix=false) | |
getSubject () | |
From (ilMailMimeSender $sender) | |
To ($to) | |
Set the mail recipient. More... | |
Cc ($cc) | |
Set the cc mail recipient. More... | |
Bcc ($bcc) | |
Set the bcc mail recipient. More... | |
getTo () | |
getCc () | |
getBcc () | |
Body (string $body) | |
getFinalBody () | |
getFinalBodyAlt () | |
getFrom () | |
Attach (string $filename, string $file_type='', string $disposition='inline', ?string $display_name=null) | |
Attach a file to the mail. More... | |
getAttachments () | |
getImages () | |
Send (ilMailMimeTransport $transport=null) | |
Static Public Member Functions | |
static | setDefaultTransport (?ilMailMimeTransport $transport) |
static | getDefaultTransport () |
Data Fields | |
const | MAIL_SUBJECT_PREFIX = '[ILIAS]' |
Protected Member Functions | |
build () | |
Build the relevant email data. More... | |
buildBodyMultiParts (string $skin) | |
getHtmlEnvelope (string $skin) | |
buildHtmlInlineImages (string $skin) | |
Protected Attributes | |
$subject = '' | |
$body = '' | |
$finalBody = '' | |
$finalBodyAlt = '' | |
$sendto = [] | |
$acc = [] | |
$abcc = [] | |
$images = [] | |
$aattach = [] | |
$actype = [] | |
$adispo = [] | |
$adisplay = [] | |
$sender | |
$settings | |
Static Protected Attributes | |
static | $defaultTransport = null |
Class ilMimeMail.
Definition at line 7 of file class.ilMimeMail.php.
ilMimeMail::__construct | ( | ) |
ilMimeMail constructor.
Definition at line 59 of file class.ilMimeMail.php.
References $DIC, $factory, and settings().
ilMimeMail::Attach | ( | string | $filename, |
string | $file_type = '' , |
||
string | $disposition = 'inline' , |
||
?string | $display_name = null |
||
) |
Attach a file to the mail.
string | $filename | Path of the file to attach |
string | $file_type | MIME-type of the file. default to 'application/x-unknown-content-type' |
string | $disposition | Instruct the Mailclient to display the file if possible ("inline") or always as a link ("attachment") possible values are "inline", "attachment" |
string | null | $display_name | Filename to use in email (if different from source file) |
Definition at line 208 of file class.ilMimeMail.php.
References $filename.
ilMimeMail::Bcc | ( | $bcc | ) |
Set the bcc mail recipient.
string|string[] | BCC email address, accept both a single address or an array of addresses |
Definition at line 148 of file class.ilMimeMail.php.
ilMimeMail::Body | ( | string | $body | ) |
|
protected |
Build the relevant email data.
Definition at line 259 of file class.ilMimeMail.php.
References $DIC, buildBodyMultiParts(), and buildHtmlInlineImages().
Referenced by Send().
|
protected |
Definition at line 277 of file class.ilMimeMail.php.
References $body, getHtmlEnvelope(), and ilUtil\makeClickable().
Referenced by build().
|
protected |
Definition at line 310 of file class.ilMimeMail.php.
Referenced by build().
ilMimeMail::Cc | ( | $cc | ) |
Set the cc mail recipient.
string|string[] | CC email address, accept both a single address or an array of addresses |
Definition at line 135 of file class.ilMimeMail.php.
ilMimeMail::From | ( | ilMailMimeSender | $sender | ) |
ilMimeMail::getAttachments | ( | ) |
Definition at line 227 of file class.ilMimeMail.php.
Referenced by ilMailMimeTransportBase\send().
ilMimeMail::getBcc | ( | ) |
Definition at line 176 of file class.ilMimeMail.php.
References $abcc.
Referenced by ilMailMimeTransportBase\send(), and ilMailTest\testExternalMailDeliveryToLocalRecipientsWorksAsExpected().
ilMimeMail::getCc | ( | ) |
Definition at line 168 of file class.ilMimeMail.php.
References $acc.
Referenced by ilMailMimeTransportBase\send().
|
static |
Definition at line 87 of file class.ilMimeMail.php.
Referenced by ilMailTest\testExternalMailDeliveryToLocalRecipientsWorksAsExpected().
ilMimeMail::getFinalBody | ( | ) |
Definition at line 186 of file class.ilMimeMail.php.
References $finalBody.
Referenced by ilMailMimeTransportBase\send().
ilMimeMail::getFinalBodyAlt | ( | ) |
Definition at line 191 of file class.ilMimeMail.php.
References $finalBodyAlt.
Referenced by ilMailMimeTransportBase\send().
ilMimeMail::getFrom | ( | ) |
Definition at line 196 of file class.ilMimeMail.php.
References $sender.
Referenced by ilMailMimeTransportBase\send().
|
protected |
Definition at line 295 of file class.ilMimeMail.php.
Referenced by buildBodyMultiParts().
ilMimeMail::getImages | ( | ) |
Definition at line 251 of file class.ilMimeMail.php.
Referenced by ilMailMimeTransportBase\send().
ilMimeMail::getSubject | ( | ) |
Definition at line 108 of file class.ilMimeMail.php.
References $subject.
Referenced by ilMailMimeTransportBase\send().
ilMimeMail::getTo | ( | ) |
Definition at line 160 of file class.ilMimeMail.php.
References $sendto.
Referenced by ilMailMimeTransportBase\send().
ilMimeMail::Send | ( | ilMailMimeTransport | $transport = null | ) |
$transport | ilMailMimeTransport|null |
Definition at line 344 of file class.ilMimeMail.php.
References build().
|
static |
ilMailMimeTransport | null | $transport |
InvalidArgumentException |
Definition at line 75 of file class.ilMimeMail.php.
Referenced by ilMailMimeTest\setUp(), and ilMailTest\testExternalMailDeliveryToLocalRecipientsWorksAsExpected().
ilMimeMail::Subject | ( | string | $subject, |
bool | $a_add_prefix = false |
||
) |
Definition at line 92 of file class.ilMimeMail.php.
References $subject, and settings().
ilMimeMail::To | ( | $to | ) |
Set the mail recipient.
string|string[] | To email address, accept both a single address or an array of addresses |
Definition at line 122 of file class.ilMimeMail.php.
|
protected |
Definition at line 39 of file class.ilMimeMail.php.
|
protected |
Definition at line 33 of file class.ilMimeMail.php.
Referenced by getBcc().
|
protected |
Definition at line 30 of file class.ilMimeMail.php.
Referenced by getCc().
|
protected |
Definition at line 42 of file class.ilMimeMail.php.
|
protected |
Definition at line 48 of file class.ilMimeMail.php.
|
protected |
Definition at line 45 of file class.ilMimeMail.php.
|
protected |
Definition at line 18 of file class.ilMimeMail.php.
Referenced by Body(), and buildBodyMultiParts().
|
staticprotected |
Definition at line 12 of file class.ilMimeMail.php.
|
protected |
Definition at line 21 of file class.ilMimeMail.php.
Referenced by getFinalBody().
|
protected |
Definition at line 24 of file class.ilMimeMail.php.
Referenced by getFinalBodyAlt().
|
protected |
Definition at line 36 of file class.ilMimeMail.php.
|
protected |
Definition at line 51 of file class.ilMimeMail.php.
|
protected |
Definition at line 27 of file class.ilMimeMail.php.
Referenced by getTo().
|
protected |
Definition at line 54 of file class.ilMimeMail.php.
|
protected |
Definition at line 15 of file class.ilMimeMail.php.
Referenced by getSubject(), and Subject().
const ilMimeMail::MAIL_SUBJECT_PREFIX = '[ILIAS]' |
Definition at line 9 of file class.ilMimeMail.php.
Referenced by ilObjMailGUI\populateExternalSettingsForm().