ILIAS
Release_4_2_x_branch Revision 61807
|
Class Mail this class handles base functions for mail handling. More...
Public Member Functions | |
ilMail ($a_user_id) | |
Constructor setup an mail object public. | |
__get ($name) | |
Magic interceptor method __get Used to include files / instantiate objects at runtime. | |
doesRecipientStillExists ($a_recipient, $a_existing_recipients) | |
enableSOAP ($a_status) | |
isSOAPEnabled () | |
setSaveInSentbox ($a_save_in_sentbox) | |
getSaveInSentbox () | |
setMailSendType ($a_types) | |
setMailRcpTo ($a_rcp_to) | |
setMailRcpCc ($a_rcp_cc) | |
setMailRcpBc ($a_rcp_bc) | |
setMailSubject ($a_subject) | |
setMailMessage ($a_message) | |
readMailObjectReferenceId () | |
read and set mail object id private | |
getMailObjectReferenceId () | |
formatNamesForOutput ($users= '') | |
Prepends the fullname of each ILIAS login name (is user has a public profile) found in the passed string and brackets the ILIAS login name afterwards. | |
getPreviousMail ($a_mail_id) | |
getNextMail ($a_mail_id) | |
getMailsOfFolder ($a_folder_id, $filter=array()) | |
get all mails of a specific folder public | |
countMailsOfFolder ($a_folder_id) | |
count all mails of a specific folder public | |
deleteMailsOfFolder ($a_folder_id) | |
delete all mails of a specific folder public | |
getMailCounterData () | |
get mail counter data returns data array with indexes "total","read","unread" public | |
getMail ($a_mail_id) | |
get data of one mail public | |
markRead ($a_mail_ids) | |
mark mails as read public | |
markUnread ($a_mail_ids) | |
mark mails as unread public | |
moveMailsToFolder ($a_mail_ids, $a_folder_id) | |
move mail to folder public | |
deleteMails ($a_mail_ids) | |
delete mail public | |
fetchMailData ($a_row) | |
fetch all query data from table mail public | |
updateDraft ($a_folder_id, $a_attachments, $a_rcp_to, $a_rcp_cc, $a_rcp_bcc, $a_m_type, $a_m_email, $a_m_subject, $a_m_message, $a_draft_id=0, $a_use_placeholders=0) | |
sendInternalMail ($a_folder_id, $a_sender_id, $a_attachments, $a_rcp_to, $a_rcp_cc, $a_rcp_bcc, $a_status, $a_m_type, $a_m_email, $a_m_subject, $a_m_message, $a_user_id=0, $a_use_placeholders=0) | |
save mail in folder private | |
replacePlaceholders ($a_message, $a_user_id) | |
distributeMail ($a_rcp_to, $a_rcp_cc, $a_rcp_bcc, $a_subject, $a_message, $a_attachments, $sent_mail_id, $a_type, $a_action, $a_use_placeholders=0) | |
send internal message to recipients private | |
getUserIds ($a_recipients) | |
get user_ids | |
checkMail ($a_rcp_to, $a_rcp_cc, $a_rcp_bcc, $a_m_subject, $a_m_message, $a_type) | |
check if mail is complete, recipients are valid public | |
getEmailsOfRecipients ($a_rcp) | |
get email addresses of recipients public | |
checkRecipients ($a_recipients, $a_type) | |
check if recipients are valid public | |
savePostData ($a_user_id, $a_attachments, $a_rcp_to, $a_rcp_cc, $a_rcp_bcc, $a_m_type, $a_m_email, $a_m_subject, $a_m_message, $a_use_placeholders) | |
save post data in table public | |
getSavedData () | |
get saved data public | |
sendMail ($a_rcp_to, $a_rcp_cc, $a_rcp_bc, $a_m_subject, $a_m_message, $a_attachment, $a_type, $a_use_placeholders=0) | |
send external mail using class.ilMimeMail.php | |
parseRcptOfMailingLists ($rcpt= '') | |
saveInSentbox ($a_attachment, $a_rcp_to, $a_rcp_cc, $a_rcp_bcc, $a_type, $a_m_subject, $a_m_message) | |
send mime mail using class.ilMimeMail.php | |
sendMimeMail ($a_rcp_to, $a_rcp_cc, $a_rcp_bcc, $a_m_subject, $a_m_message, $a_attachments) | |
send mime mail using class.ilMimeMail.php All external mails are send to SOAP::sendMail starting a kind of background process | |
getEmailOfSender () | |
get email of sender public | |
saveAttachments ($a_attachments) | |
set attachments | |
getAttachments () | |
get attachments public | |
explodeRecipients ($a_recipients, $use_pear=true) | |
explode recipient string allowed seperators are ',' ';' ' ' | |
__getCountRecipient ($rcp, $a_only_email=true) | |
__getCountRecipients ($a_to, $a_cc, $a_bcc, $a_only_email=true) | |
__getEmailRecipients ($a_rcp) | |
__prependMessage ($a_m_message, $rcp_to, $rcp_cc) | |
__checkSystemRecipients (&$a_rcp_to) | |
__substituteRecipients ($a_rcp, $direction) | |
Note: This function can only be used, when ILIAS is configured to not use standards compliant mail addresses. | |
appendInstallationSignature ($a_flag=null) | |
Setter/Getter for appending the installation signarue. |
Static Public Member Functions | |
static | addFullname ($a_email, $a_fullname) |
static | getIliasMailerAddress () |
Builds an email address used for system notifications. | |
static | _getUserInternalMailboxAddress ($usr_id, $login=null, $firstname=null, $lastname=null) |
STATIC METHOD. | |
static | _usePearMail () |
STATIC METHOD. | |
static | _getAutoGeneratedMessageString ($lang=null) |
get auto generated info string | |
static | _getInstallationSignature () |
Static getter for the installation signature. | |
static | getSubjectPrefix () |
Get text that will be prepended to auto generated mails. | |
static | getSalutation ($a_usr_id, $a_language=null) |
Get salutation. |
Static Protected Member Functions | |
static | getCachedUserInstance ($a_usr_id) |
Returns a cached instance of ilObjUser. |
Protected Attributes | |
$appendInstallationSignature = false | |
$properties = array() |
Static Protected Attributes | |
static | $userInstances = array() |
Private Member Functions | |
setUsePear ($bool) | |
getUsePear () | |
validatePear ($a_recipients) |
Private Attributes | |
$use_pear = true |
Class Mail this class handles base functions for mail handling.
If ILIAS is configured to use standards compliant e-mail addresses, then this class supports RFC 822 compliant address lists as specified in http://www.ietf.org/rfc/rfc0822.txt
Examples: The following mailbox addresses work for sending an e-mail to the user with the login john.doe and e-mail address jd@ma. The user is member of the course "French Course". The member role of the course object has the name "il_crs_member_998" and the object ID "1000". il.c om
john.doe John Doe <john.doe> john.doe #member@[French Course] #il_crs_member_998 #il_role_1000 jd@ma John Doe il.c omjd@ma il.c om
Syntax Rules: The following excerpt from chapter 6.1 "Syntax" of RFC 822 is relevant for the semantics described below:
addr-spec = local-part [ "@", domain ]
Semantics: User account mailbox address:
Role object mailbox address:
External E-Mail address:
If ILIAS is not configured to use standards compliant e-mail addresses, then the following description applies:
Examples: The following mailbox addresses work for sending an e-mail to the user with the login john.doe, who is member of the course "French Course". Assuming that the member role of the course object has the name "il_crs_member_998" and the object ID "1000".
john.doe #il_crs_member_998 #il_role_1000 jd@ma il.c om
Syntax: The following syntax rule is relevant for the semantics described below:
addr-spec = local-part [ "@", domain ]
Semantics: User account mailbox address:
Role object mailbox address:
External E-Mail address:
Definition at line 129 of file class.ilMail.php.
ilMail::__checkSystemRecipients | ( | & | $a_rcp_to | ) |
Definition at line 2423 of file class.ilMail.php.
References ilObjUser\_getAllUserLogins().
Referenced by sendMail().
ilMail::__get | ( | $name | ) |
Magic interceptor method __get Used to include files / instantiate objects at runtime.
string | The name of the class property |
Definition at line 283 of file class.ilMail.php.
ilMail::__getCountRecipient | ( | $rcp, | |
$a_only_email = true |
|||
) |
Definition at line 2292 of file class.ilMail.php.
References __substituteRecipients(), ilObjUser\_lookupId(), _usePearMail(), explodeRecipients(), getUsePear(), and validatePear().
Referenced by __getCountRecipients().
ilMail::__getCountRecipients | ( | $a_to, | |
$a_cc, | |||
$a_bcc, | |||
$a_only_email = true |
|||
) |
Definition at line 2355 of file class.ilMail.php.
References __getCountRecipient().
Referenced by sendMail().
ilMail::__getEmailRecipients | ( | $a_rcp | ) |
Definition at line 2362 of file class.ilMail.php.
References __substituteRecipients(), ilObjUser\_lookupId(), _usePearMail(), and explodeRecipients().
Referenced by sendMail().
ilMail::__prependMessage | ( | $a_m_message, | |
$rcp_to, | |||
$rcp_cc | |||
) |
Definition at line 2406 of file class.ilMail.php.
ilMail::__substituteRecipients | ( | $a_rcp, | |
$direction | |||
) |
Note: This function can only be used, when ILIAS is configured to not use standards compliant mail addresses.
If standards compliant mail addresses are used, substitution is not supported, because then we do the parsing of mail addresses using the Pear Mail Extension.
Definition at line 2442 of file class.ilMail.php.
References ilObjUser\_loginExists(), and explodeRecipients().
Referenced by __getCountRecipient(), __getEmailRecipients(), distributeMail(), and sendMail().
|
static |
get auto generated info string
public
string | language |
Definition at line 2573 of file class.ilMail.php.
References $ilSetting, $lang, ilUtil\_getHttpPath(), and ilLanguageFactory\_getLanguage().
Referenced by ilECSAppEventListener\_sendNotification(), ilECSAppEventListener\handleEvent(), ilPaymentNotification\send(), ilMailSummaryNotification\send(), ilCronCourseGroupNotification\sendMail(), ilECSContentWriter\sendNewContentNotification(), and ilAuthContainerECS\sendNotification().
|
static |
Static getter for the installation signature.
public
Definition at line 2640 of file class.ilMail.php.
References ilUtil\_getHttpPath(), and ILIAS_WEB_DIR.
Referenced by ilPaymentNotification\send(), ilMailSummaryNotification\send(), ilCronCourseGroupNotification\sendMail(), and sendMail().
|
static |
STATIC METHOD.
Returns the internal mailbox address for the specified user.
This functions (may) perform faster, if the login, firstname and lastname are supplied as parameters aloing with the $usr_id.
usr_id | the usr_id of the user |
login | optional, but if you supply it, you have to supply the firstname and the lastname as well |
firstname | optional |
lastname | public |
Definition at line 2499 of file class.ilMail.php.
References $usr_id, _usePearMail(), and getCachedUserInstance().
|
static |
STATIC METHOD.
Returns true, if Pear Mail shall be used for resolving mail addresses.
public
Definition at line 2532 of file class.ilMail.php.
References $ilias, $log, and $result.
Referenced by __getCountRecipient(), __getEmailRecipients(), _getUserInternalMailboxAddress(), checkRecipients(), distributeMail(), explodeRecipients(), getEmailsOfRecipients(), ilRbacReview\getRoleMailboxAddress(), getUserIds(), ilUtil\is_email(), ilObjiLincCourseGUI\mailMembersObject(), ilObjGroupGUI\mailMembersObject(), ilObjCourseGUI\mailMembersObject(), parseRcptOfMailingLists(), ilRbacReview\searchRolesByMailboxAddressList(), sendMail(), and validatePear().
|
static |
string | $a_email | |
string | $a_fullname |
Definition at line 2021 of file class.ilMail.php.
References ilMimeMail\_mimeEncode().
ilMail::appendInstallationSignature | ( | $a_flag = null | ) |
Setter/Getter for appending the installation signarue.
public
mixed | boolean or nothing |
Definition at line 2621 of file class.ilMail.php.
References $appendInstallationSignature.
Referenced by sendMail().
ilMail::checkMail | ( | $a_rcp_to, | |
$a_rcp_cc, | |||
$a_rcp_bcc, | |||
$a_m_subject, | |||
$a_m_message, | |||
$a_type | |||
) |
check if mail is complete, recipients are valid public
string | rcp_to |
string | rcp_cc |
string | rcp_bcc |
string | m_subject |
string | m_message |
Definition at line 1402 of file class.ilMail.php.
Referenced by sendMail().
ilMail::checkRecipients | ( | $a_recipients, | |
$a_type | |||
) |
check if recipients are valid public
string | string with login names or group names (start with #) |
Definition at line 1530 of file class.ilMail.php.
References $user_id, _usePearMail(), explodeRecipients(), getUsePear(), ilObjUser\getUserIdByLogin(), ilUtil\groupNameExists(), ilUtil\is_email(), and validatePear().
Referenced by sendMail().
ilMail::countMailsOfFolder | ( | $a_folder_id | ) |
count all mails of a specific folder public
integer | id of folder |
Definition at line 640 of file class.ilMail.php.
ilMail::deleteMails | ( | $a_mail_ids | ) |
delete mail public
array | mail ids |
Definition at line 866 of file class.ilMail.php.
References $ilDB.
Referenced by deleteMailsOfFolder(), and sendMail().
ilMail::deleteMailsOfFolder | ( | $a_folder_id | ) |
delete all mails of a specific folder public
integer | id of folder |
Definition at line 660 of file class.ilMail.php.
References $ilDB, $mail_data, deleteMails(), and getMailsOfFolder().
ilMail::distributeMail | ( | $a_rcp_to, | |
$a_rcp_cc, | |||
$a_rcp_bcc, | |||
$a_subject, | |||
$a_message, | |||
$a_attachments, | |||
$sent_mail_id, | |||
$a_type, | |||
$a_action, | |||
$a_use_placeholders = 0 |
|||
) |
send internal message to recipients private
string | to |
string | cc |
string | bcc |
string | subject |
string | message |
array | attachments |
integer | id of mail which is stored in sentbox |
array | 'normal' and/or 'system' and/or 'email' |
Definition at line 1070 of file class.ilMail.php.
References $log, __substituteRecipients(), _usePearMail(), getCachedUserInstance(), getUserIds(), replacePlaceholders(), sendInternalMail(), and sendMimeMail().
Referenced by sendMail().
ilMail::doesRecipientStillExists | ( | $a_recipient, | |
$a_existing_recipients | |||
) |
Definition at line 304 of file class.ilMail.php.
References explodeRecipients().
ilMail::enableSOAP | ( | $a_status | ) |
Definition at line 367 of file class.ilMail.php.
ilMail::explodeRecipients | ( | $a_recipients, | |
$use_pear = true |
|||
) |
explode recipient string allowed seperators are ',' ';' ' '
Returns an array with recipient objects
private
Definition at line 2260 of file class.ilMail.php.
References $use_pear, and _usePearMail().
Referenced by __getCountRecipient(), __getEmailRecipients(), __substituteRecipients(), checkRecipients(), doesRecipientStillExists(), getEmailsOfRecipients(), getUserIds(), parseRcptOfMailingLists(), and validatePear().
ilMail::fetchMailData | ( | $a_row | ) |
fetch all query data from table mail public
object | object of query |
Definition at line 891 of file class.ilMail.php.
Referenced by getMail(), getMailsOfFolder(), getNextMail(), getPreviousMail(), and getSavedData().
ilMail::formatNamesForOutput | ( | $users = '' | ) |
Prepends the fullname of each ILIAS login name (is user has a public profile) found in the passed string and brackets the ILIAS login name afterwards.
string | $users | String containing to, cc or bcc recipients |
public
Definition at line 479 of file class.ilMail.php.
References ilObjUser\_lookupId(), ilObjUser\_lookupPref(), and getCachedUserInstance().
ilMail::getAttachments | ( | ) |
get attachments public
Definition at line 2242 of file class.ilMail.php.
|
staticprotected |
Returns a cached instance of ilObjUser.
integer | $a_usr_id |
Definition at line 2742 of file class.ilMail.php.
Referenced by _getUserInternalMailboxAddress(), distributeMail(), formatNamesForOutput(), getEmailOfSender(), getEmailsOfRecipients(), and replacePlaceholders().
ilMail::getEmailOfSender | ( | ) |
get email of sender public
Definition at line 2198 of file class.ilMail.php.
References getCachedUserInstance(), and ilUtil\is_email().
ilMail::getEmailsOfRecipients | ( | $a_rcp | ) |
get email addresses of recipients public
string | string with login names or group names (start with #) or email address |
Definition at line 1430 of file class.ilMail.php.
References $ref_id, $usr_id, ilObject\_getAllReferences(), ilObjGroup\_lookupIdByTitle(), _usePearMail(), explodeRecipients(), getCachedUserInstance(), ilObjectFactory\getInstanceByRefId(), getUsePear(), ilObjUser\getUserIdByLogin(), and validatePear().
|
static |
Builds an email address used for system notifications.
public
Definition at line 2072 of file class.ilMail.php.
References $ilSetting, ilMimeMail\_mimeEncode(), and ilUtil\is_email().
Referenced by ilMailSummaryNotification\send().
ilMail::getMail | ( | $a_mail_id | ) |
get data of one mail public
int | mail_id |
Definition at line 704 of file class.ilMail.php.
References $ilDB, $mail_data, $res, DB_FETCHMODE_OBJECT, and fetchMailData().
ilMail::getMailCounterData | ( | ) |
get mail counter data returns data array with indexes "total","read","unread" public
Definition at line 690 of file class.ilMail.php.
ilMail::getMailObjectReferenceId | ( | ) |
Definition at line 464 of file class.ilMail.php.
References $mail_obj_ref_id.
ilMail::getMailsOfFolder | ( | $a_folder_id, | |
$filter = array() |
|||
) |
get all mails of a specific folder public
@param integer id of folder
array | optional filter array |
Definition at line 583 of file class.ilMail.php.
References $ilDB, $query, $res, $row, and fetchMailData().
Referenced by deleteMailsOfFolder(), and ilPDMailBlockGUI\getMails().
ilMail::getNextMail | ( | $a_mail_id | ) |
Definition at line 557 of file class.ilMail.php.
References $ilDB, $mail_data, $res, DB_FETCHMODE_OBJECT, and fetchMailData().
ilMail::getPreviousMail | ( | $a_mail_id | ) |
Definition at line 538 of file class.ilMail.php.
References $ilDB, $mail_data, $res, DB_FETCHMODE_OBJECT, and fetchMailData().
|
static |
Get salutation.
int | $a_usr_id |
Definition at line 2681 of file class.ilMail.php.
References $lang, $lng, ilObjUser\_lookupGender(), and ilObjUser\_lookupName().
Referenced by ilPaymentNotification\send(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilExerciseMailNotification\send(), ilCalendarMailNotification\send(), and ilCronCourseGroupNotification\sendMail().
ilMail::getSavedData | ( | ) |
get saved data public
Definition at line 1746 of file class.ilMail.php.
References $ilDB, $mail_data, $res, DB_FETCHMODE_OBJECT, and fetchMailData().
Referenced by savePostData().
ilMail::getSaveInSentbox | ( | ) |
Definition at line 389 of file class.ilMail.php.
References $save_in_sentbox.
Referenced by sendMail().
|
static |
Get text that will be prepended to auto generated mails.
Definition at line 2668 of file class.ilMail.php.
References $ilSetting.
Referenced by sendMimeMail().
|
private |
Definition at line 2707 of file class.ilMail.php.
References $use_pear.
Referenced by __getCountRecipient(), checkRecipients(), getEmailsOfRecipients(), and getUserIds().
ilMail::getUserIds | ( | $a_recipients | ) |
get user_ids
string | recipients seperated by ',' |
Definition at line 1290 of file class.ilMail.php.
References $log, $ref_id, $usr_id, ilObject\_getAllReferences(), ilObjUser\_lookupId(), ilObjGroup\_lookupIdByTitle(), _usePearMail(), explodeRecipients(), ilObjectFactory\getInstanceByRefId(), getUsePear(), ilObjUser\getUserIdByLogin(), ilUtil\groupNameExists(), and validatePear().
Referenced by distributeMail().
ilMail::ilMail | ( | $a_user_id | ) |
Constructor setup an mail object public.
integer | user_id |
Definition at line 251 of file class.ilMail.php.
References $ilias, $lng, readMailObjectReferenceId(), and setSaveInSentbox().
Referenced by ilFormatMail\ilFormatMail().
ilMail::isSOAPEnabled | ( | ) |
Definition at line 371 of file class.ilMail.php.
References $ilSetting, and $soap_enabled.
Referenced by sendMimeMail().
ilMail::markRead | ( | $a_mail_ids | ) |
mark mails as read public
array | mail ids |
Definition at line 726 of file class.ilMail.php.
References $data, $ilDB, $in, $query, and $res.
ilMail::markUnread | ( | $a_mail_ids | ) |
mark mails as unread public
array | mail ids |
Definition at line 773 of file class.ilMail.php.
References $data, $ilDB, $in, and $query.
ilMail::moveMailsToFolder | ( | $a_mail_ids, | |
$a_folder_id | |||
) |
move mail to folder public
array | mail ids |
int | folder_id |
Definition at line 820 of file class.ilMail.php.
References $data, $ilDB, $in, and $query.
ilMail::parseRcptOfMailingLists | ( | $rcpt = '' | ) |
Definition at line 1940 of file class.ilMail.php.
References _usePearMail(), and explodeRecipients().
Referenced by sendMail().
ilMail::readMailObjectReferenceId | ( | ) |
read and set mail object id private
Definition at line 458 of file class.ilMail.php.
References ilMailGlobalServices\getMailObjectRefId().
Referenced by ilMail().
ilMail::replacePlaceholders | ( | $a_message, | |
$a_user_id | |||
) |
Definition at line 1032 of file class.ilMail.php.
References $lng, and getCachedUserInstance().
Referenced by distributeMail(), and sendInternalMail().
ilMail::saveAttachments | ( | $a_attachments | ) |
set attachments
array | array of attachments public |
Definition at line 2219 of file class.ilMail.php.
References $ilDB.
ilMail::saveInSentbox | ( | $a_attachment, | |
$a_rcp_to, | |||
$a_rcp_cc, | |||
$a_rcp_bcc, | |||
$a_type, | |||
$a_m_subject, | |||
$a_m_message | |||
) |
send mime mail using class.ilMimeMail.php
array | attachments |
string | to |
string | cc |
string | bcc |
string | type |
string | subject |
string | message public |
Definition at line 2002 of file class.ilMail.php.
References sendInternalMail().
Referenced by sendMail().
ilMail::savePostData | ( | $a_user_id, | |
$a_attachments, | |||
$a_rcp_to, | |||
$a_rcp_cc, | |||
$a_rcp_bcc, | |||
$a_m_type, | |||
$a_m_email, | |||
$a_m_subject, | |||
$a_m_message, | |||
$a_use_placeholders | |||
) |
save post data in table public
int | user_id |
array | attachments |
string | to |
string | cc |
string | bcc |
array | type of mail (system,normal,email) |
int | as email (1,0) |
string | subject |
string | message |
int | use placeholders |
Definition at line 1694 of file class.ilMail.php.
References $ilDB, and getSavedData().
ilMail::sendInternalMail | ( | $a_folder_id, | |
$a_sender_id, | |||
$a_attachments, | |||
$a_rcp_to, | |||
$a_rcp_cc, | |||
$a_rcp_bcc, | |||
$a_status, | |||
$a_m_type, | |||
$a_m_email, | |||
$a_m_subject, | |||
$a_m_message, | |||
$a_user_id = 0 , |
|||
$a_use_placeholders = 0 |
|||
) |
save mail in folder private
integer | id of folder |
integer | sender_id |
array | attachments |
string | to |
string | cc |
string | bcc |
string | status |
string | type of mail (system,normal) |
integer | as email (1,0) |
string | subject |
string | message |
integer | user_id |
Definition at line 967 of file class.ilMail.php.
References $ilDB, $log, $user_id, and replacePlaceholders().
Referenced by distributeMail(), and saveInSentbox().
ilMail::sendMail | ( | $a_rcp_to, | |
$a_rcp_cc, | |||
$a_rcp_bc, | |||
$a_m_subject, | |||
$a_m_message, | |||
$a_attachment, | |||
$a_type, | |||
$a_use_placeholders = 0 |
|||
) |
send external mail using class.ilMimeMail.php
string | to |
string | cc |
string | bcc |
string | subject |
string | message |
array | attachments |
array | type (normal and/or system and/or email) |
integer | also as email (0,1) public |
Definition at line 1774 of file class.ilMail.php.
References $lng, $log, __checkSystemRecipients(), __getCountRecipients(), __getEmailRecipients(), __substituteRecipients(), _getInstallationSignature(), _usePearMail(), appendInstallationSignature(), checkMail(), checkRecipients(), deleteMails(), distributeMail(), getSaveInSentbox(), parseRcptOfMailingLists(), saveInSentbox(), and sendMimeMail().
ilMail::sendMimeMail | ( | $a_rcp_to, | |
$a_rcp_cc, | |||
$a_rcp_bcc, | |||
$a_m_subject, | |||
$a_m_message, | |||
$a_attachments | |||
) |
send mime mail using class.ilMimeMail.php All external mails are send to SOAP::sendMail starting a kind of background process
string | of recipients |
string | of recipients |
string | of recipients |
string | subject |
string | message |
array | attachments public |
Definition at line 2113 of file class.ilMail.php.
References $_COOKIE, getSubjectPrefix(), and isSOAPEnabled().
Referenced by distributeMail(), and sendMail().
ilMail::setMailMessage | ( | $a_message | ) |
Definition at line 449 of file class.ilMail.php.
ilMail::setMailRcpBc | ( | $a_rcp_bc | ) |
Definition at line 429 of file class.ilMail.php.
ilMail::setMailRcpCc | ( | $a_rcp_cc | ) |
Definition at line 419 of file class.ilMail.php.
ilMail::setMailRcpTo | ( | $a_rcp_to | ) |
Definition at line 409 of file class.ilMail.php.
ilMail::setMailSendType | ( | $a_types | ) |
Definition at line 399 of file class.ilMail.php.
ilMail::setMailSubject | ( | $a_subject | ) |
Definition at line 439 of file class.ilMail.php.
ilMail::setSaveInSentbox | ( | $a_save_in_sentbox | ) |
Definition at line 384 of file class.ilMail.php.
Referenced by ilSoapUtils\distributeMails(), and ilMail().
|
private |
Definition at line 2702 of file class.ilMail.php.
Referenced by validatePear().
ilMail::updateDraft | ( | $a_folder_id, | |
$a_attachments, | |||
$a_rcp_to, | |||
$a_rcp_cc, | |||
$a_rcp_bcc, | |||
$a_m_type, | |||
$a_m_email, | |||
$a_m_subject, | |||
$a_m_message, | |||
$a_draft_id = 0 , |
|||
$a_use_placeholders = 0 |
|||
) |
Definition at line 914 of file class.ilMail.php.
References $ilDB.
|
private |
<type> | $a_recipients |
Definition at line 2717 of file class.ilMail.php.
References _usePearMail(), explodeRecipients(), and setUsePear().
Referenced by __getCountRecipient(), checkRecipients(), getEmailsOfRecipients(), and getUserIds().
|
protected |
Definition at line 228 of file class.ilMail.php.
Referenced by appendInstallationSignature().
ilMail::$ilias |
Definition at line 137 of file class.ilMail.php.
Referenced by _usePearMail(), and ilMail().
ilMail::$lng |
Definition at line 144 of file class.ilMail.php.
Referenced by getSalutation(), ilMail(), replacePlaceholders(), and sendMail().
ilMail::$mail_counter |
Definition at line 181 of file class.ilMail.php.
ilMail::$mail_data |
Definition at line 188 of file class.ilMail.php.
Referenced by ilFormatMail\appendSearchResult(), deleteMailsOfFolder(), getMail(), getNextMail(), getPreviousMail(), and getSavedData().
ilMail::$mail_message |
Definition at line 221 of file class.ilMail.php.
ilMail::$mail_obj_ref_id |
Definition at line 196 of file class.ilMail.php.
Referenced by getMailObjectReferenceId().
ilMail::$mail_options |
Definition at line 153 of file class.ilMail.php.
ilMail::$mail_rcp_bc |
Definition at line 219 of file class.ilMail.php.
ilMail::$mail_rcp_cc |
Definition at line 218 of file class.ilMail.php.
ilMail::$mail_rcp_to |
Definition at line 217 of file class.ilMail.php.
ilMail::$mail_send_type |
Definition at line 203 of file class.ilMail.php.
ilMail::$mail_subject |
Definition at line 220 of file class.ilMail.php.
ilMail::$mail_to_global_roles = 0 |
Definition at line 225 of file class.ilMail.php.
ilMail::$mail_use_placeholders = 0 |
Definition at line 222 of file class.ilMail.php.
ilMail::$mfile |
Definition at line 151 of file class.ilMail.php.
|
protected |
Definition at line 238 of file class.ilMail.php.
ilMail::$save_in_sentbox |
Definition at line 210 of file class.ilMail.php.
Referenced by getSaveInSentbox().
ilMail::$soap_enabled = true |
Definition at line 224 of file class.ilMail.php.
Referenced by isSOAPEnabled().
ilMail::$table_mail |
Definition at line 167 of file class.ilMail.php.
ilMail::$table_mail_saved |
Definition at line 174 of file class.ilMail.php.
|
private |
Definition at line 227 of file class.ilMail.php.
Referenced by explodeRecipients(), and getUsePear().
ilMail::$user_id |
Definition at line 160 of file class.ilMail.php.
Referenced by checkRecipients(), and sendInternalMail().
|
staticprotected |
Definition at line 243 of file class.ilMail.php.