ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilMimeMail. More...
Public Member Functions | |
__construct () | |
ilMimeMail constructor. More... | |
Subject ($subject, $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 ($body) | |
getFinalBody () | |
getFinalBodyAlt () | |
getFrom () | |
Attach ($filename, $file_type='', $disposition='inline', $display_name=null) | |
Attach a file to the mail. More... | |
getAttachments () | |
getImages () | |
Send ($transport=null) | |
Static Public Member Functions | |
static | setDefaultTransport ($transport) |
static | getDefaultTransport () |
Protected Member Functions | |
build () | |
Build the relevant email data. More... | |
buildBodyParts ($skin) | |
getHtmlEnvelope ($skin) | |
buildHtmlInlineImages ($skin) | |
Protected Attributes | |
$subject = '' | |
$body = '' | |
$finalBody = '' | |
$finalBodyAlt = '' | |
$sendto = array() | |
$acc = array() | |
$abcc = array() | |
$images = array() | |
$aattach = array() | |
$actype = array() | |
$adispo = array() | |
$adisplay = array() | |
$sender | |
Static Protected Attributes | |
static | $defaultTransport |
Class ilMimeMail.
Definition at line 7 of file class.ilMimeMail.php.
ilMimeMail::__construct | ( | ) |
ilMimeMail constructor.
Definition at line 84 of file class.ilMimeMail.php.
References $DIC, and $factory.
ilMimeMail::Attach | ( | $filename, | |
$file_type = '' , |
|||
$disposition = 'inline' , |
|||
$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 | $display_name | Filename to use in email (if different from source file) |
Definition at line 254 of file class.ilMimeMail.php.
References $filename.
ilMimeMail::Bcc | ( | $bcc | ) |
Set the bcc mail recipient.
string|array | BCC email address, accept both a single address or an array of addresses |
Definition at line 182 of file class.ilMimeMail.php.
ilMimeMail::Body | ( | $body | ) |
|
protected |
Build the relevant email data.
Definition at line 301 of file class.ilMimeMail.php.
References $body, $DIC, array, buildBodyParts(), buildHtmlInlineImages(), and images.
Referenced by Send().
|
protected |
string | $skin |
Definition at line 322 of file class.ilMimeMail.php.
References $body, array, getHtmlEnvelope(), and ilUtil\makeClickable().
Referenced by build().
|
protected |
ilMimeMail::Cc | ( | $cc | ) |
Set the cc mail recipient.
string|array | CC email address, accept both a single address or an array of addresses |
Definition at line 169 of file class.ilMimeMail.php.
ilMimeMail::From | ( | ilMailMimeSender | $sender | ) |
ilMailMimeSender | $sender |
Definition at line 147 of file class.ilMimeMail.php.
References $sender.
ilMimeMail::getAttachments | ( | ) |
Definition at line 269 of file class.ilMimeMail.php.
References $i, $name, and array.
Referenced by ilMailMimeTransportBase\send().
ilMimeMail::getBcc | ( | ) |
Definition at line 210 of file class.ilMimeMail.php.
References $abcc.
Referenced by ilMailMimeTransportBase\send().
ilMimeMail::getCc | ( | ) |
Definition at line 202 of file class.ilMimeMail.php.
References $acc.
Referenced by ilMailMimeTransportBase\send().
|
static |
Definition at line 113 of file class.ilMimeMail.php.
ilMimeMail::getFinalBody | ( | ) |
Definition at line 226 of file class.ilMimeMail.php.
References $finalBody.
Referenced by ilMailMimeTransportBase\send().
ilMimeMail::getFinalBodyAlt | ( | ) |
Definition at line 234 of file class.ilMimeMail.php.
References $finalBodyAlt.
Referenced by ilMailMimeTransportBase\send().
ilMimeMail::getFrom | ( | ) |
Definition at line 242 of file class.ilMimeMail.php.
References $sender.
Referenced by ilMailMimeTransportBase\send().
|
protected |
string | $skin |
Definition at line 344 of file class.ilMimeMail.php.
Referenced by buildBodyParts().
ilMimeMail::getImages | ( | ) |
Definition at line 293 of file class.ilMimeMail.php.
References images.
Referenced by ilMailMimeTransportBase\send().
ilMimeMail::getSubject | ( | ) |
Definition at line 139 of file class.ilMimeMail.php.
References $subject.
Referenced by ilMailMimeTransportBase\send().
ilMimeMail::getTo | ( | ) |
Definition at line 194 of file class.ilMimeMail.php.
References $sendto.
Referenced by ilMailMimeTransportBase\send().
ilMimeMail::Send | ( | $transport = null | ) |
$transport | |null |
Definition at line 402 of file class.ilMimeMail.php.
References build().
|
static |
\ilMailMimeTransport | null | $transport |
Definition at line 98 of file class.ilMimeMail.php.
Referenced by ilMailMimeTest\setUp().
ilMimeMail::Subject | ( | $subject, | |
$a_add_prefix = false |
|||
) |
string | $subject | Define the subject line of the email |
bool | $a_add_prefix |
Definition at line 122 of file class.ilMimeMail.php.
References $subject, and ilMail\getSubjectPrefix().
ilMimeMail::To | ( | $to | ) |
Set the mail recipient.
string|array | To email address, accept both a single address or an array of addresses |
Definition at line 156 of file class.ilMimeMail.php.
|
protected |
Definition at line 59 of file class.ilMimeMail.php.
|
protected |
Definition at line 48 of file class.ilMimeMail.php.
Referenced by getBcc().
|
protected |
Definition at line 43 of file class.ilMimeMail.php.
Referenced by getCc().
|
protected |
Definition at line 64 of file class.ilMimeMail.php.
|
protected |
Definition at line 74 of file class.ilMimeMail.php.
|
protected |
Definition at line 69 of file class.ilMimeMail.php.
|
protected |
Definition at line 22 of file class.ilMimeMail.php.
Referenced by Body(), build(), and buildBodyParts().
|
staticprotected |
Definition at line 12 of file class.ilMimeMail.php.
|
protected |
Definition at line 27 of file class.ilMimeMail.php.
Referenced by getFinalBody().
|
protected |
Definition at line 32 of file class.ilMimeMail.php.
Referenced by getFinalBodyAlt().
|
protected |
Definition at line 53 of file class.ilMimeMail.php.
|
protected |
Definition at line 79 of file class.ilMimeMail.php.
|
protected |
Definition at line 38 of file class.ilMimeMail.php.
Referenced by getTo().
|
protected |
Definition at line 17 of file class.ilMimeMail.php.
Referenced by getSubject(), and Subject().