|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Class Mail this class handles base functions for mail handling. More...
Inheritance diagram for ilMail:
Collaboration diagram for ilMail:Public Member Functions | |
| __construct ($a_user_id) | |
| Constructor setup an mail object @access public. More... | |
| __get ($name) | |
| Magic interceptor method __get Used to include files / instantiate objects at runtime. More... | |
| 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 @access private More... | |
| 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. More... | |
| getPreviousMail ($a_mail_id) | |
| getNextMail ($a_mail_id) | |
| getMailsOfFolder ($a_folder_id, $filter=array()) | |
| countMailsOfFolder ($a_folder_id) | |
| count all mails of a specific folder @access public More... | |
| deleteMailsOfFolder ($a_folder_id) | |
| delete all mails of a specific folder @access public More... | |
| getMailCounterData () | |
| get mail counter data returns data array with indexes "total","read","unread" @access public More... | |
| getMail ($a_mail_id) | |
| get data of one mail @access public More... | |
| markRead ($a_mail_ids) | |
| mark mails as read @access public More... | |
| markUnread ($a_mail_ids) | |
| mark mails as unread @access public More... | |
| moveMailsToFolder ($a_mail_ids, $a_folder_id) | |
| move mail to folder @access public More... | |
| deleteMails (array $a_mail_ids) | |
| Delete mails. More... | |
| fetchMailData ($a_row) | |
| fetch all query data from table mail @access public More... | |
| getNewDraftId ($usrId, $folderId) | |
| 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, $a_tpl_context_id=null, $a_tpl_context_params=array()) | |
| 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, $a_tpl_context_id=null, $a_tpl_context_params=array()) | |
| save mail in folder @access private More... | |
| 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 @access private More... | |
| getUserIds ($a_recipients) | |
| get user_ids More... | |
| 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 @access public More... | |
| getEmailsOfRecipients ($a_rcp) | |
| get email addresses of recipients @access public More... | |
| checkRecipients ($a_recipients) | |
| check if recipients are valid @access public More... | |
| 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, $a_tpl_context_id=null, $a_tpl_ctx_params=array()) | |
| save post data in table @access public More... | |
| getSavedData () | |
| get saved data @access public More... | |
| validateRecipients ($a_rcp_to, $a_rcp_cc, $a_rcp_bc) | |
| 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 More... | |
| parseRcptOfMailingLists ($rcpt='', $maintain_lists=false) | |
| 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 More... | |
| sendMimeMail ($a_rcp_to, $a_rcp_cc, $a_rcp_bcc, $a_m_subject, $a_m_message, $a_attachments, $a_no_soap=false) | |
| send mime mail using class.ilMimeMail.php All external mails are send to SOAP::sendMail starting a kind of background process More... | |
| getEmailOfSender () | |
| get email of sender @access public More... | |
| saveAttachments ($a_attachments) | |
| set attachments More... | |
| getAttachments () | |
| get attachments @access public More... | |
| explodeRecipients ($a_recipients, $use_pear=true) | |
| explode recipient string allowed seperators are ',' ';' ' ' More... | |
| __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) | |
| __substituteRecipients ($a_rcp, $direction) | |
| Note: This function can only be used, when ILIAS is configured to not use standards compliant mail addresses. More... | |
| appendInstallationSignature ($a_flag=null) | |
| Setter/Getter for appending the installation signarue. More... | |
Static Public Member Functions | |
| static | addFullname ($a_email, $a_fullname) |
| static | getIliasMailerAddress () |
| Builds an email address used for system notifications. More... | |
| static | _getUserInternalMailboxAddress ($usr_id, $login=null, $firstname=null, $lastname=null) |
| static | _getAutoGeneratedMessageString ($lang=null) |
| get auto generated info string More... | |
| static | _getInstallationSignature () |
| Static getter for the installation signature. More... | |
| static | getSubjectPrefix () |
| Get text that will be prepended to auto generated mails. More... | |
| static | getSalutation ($a_usr_id, $a_language=null) |
| Get salutation. More... | |
Protected Member Functions | |
| replacePlaceholders ($a_message, $a_user_id=0) | |
Static Protected Member Functions | |
| static | getCachedUserInstance ($a_usr_id) |
| Returns a cached instance of ilObjUser. More... | |
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.nosp@m.il.c.nosp@m.om. 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".
john.doe John Doe <john.doe> john.doe@ilias #member@[French Course] #il_crs_member_998 #il_role_1000 jd@ma.nosp@m.il.c.nosp@m.om John Doe jd@ma.nosp@m.il.c.nosp@m.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:
Semantics: User account mailbox address:
Role object mailbox address:
Definition at line 109 of file class.ilMail.php.
| ilMail::__construct | ( | $a_user_id | ) |
Constructor setup an mail object @access public.
| integer | user_id |
Reimplemented in ilFormatMail.
Definition at line 236 of file class.ilMail.php.
References $ilias, $ilUser, $lng, readMailObjectReferenceId(), and setSaveInSentbox().
Here is the call graph for this function:| 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 268 of file class.ilMail.php.
References $ilUser.
| ilMail::__getCountRecipient | ( | $rcp, | |
$a_only_email = true |
|||
| ) |
Definition at line 2571 of file class.ilMail.php.
References __substituteRecipients(), ilObjUser\_lookupId(), explodeRecipients(), getUsePear(), and validatePear().
Referenced by __getCountRecipients().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMail::__getCountRecipients | ( | $a_to, | |
| $a_cc, | |||
| $a_bcc, | |||
$a_only_email = true |
|||
| ) |
Definition at line 2634 of file class.ilMail.php.
References __getCountRecipient().
Referenced by sendMail().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMail::__getEmailRecipients | ( | $a_rcp | ) |
Definition at line 2641 of file class.ilMail.php.
References __substituteRecipients(), ilObjUser\_lookupId(), and explodeRecipients().
Referenced by sendMail().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMail::__prependMessage | ( | $a_m_message, | |
| $rcp_to, | |||
| $rcp_cc | |||
| ) |
Definition at line 2685 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 2709 of file class.ilMail.php.
References ilObjUser\_loginExists(), and explodeRecipients().
Referenced by __getCountRecipient(), __getEmailRecipients(), distributeMail(), and sendMail().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
get auto generated info string
@access public
| string | language |
Definition at line 2817 of file class.ilMail.php.
References $ilSetting, $lang, ilUtil\_getHttpPath(), and ilLanguageFactory\_getLanguage().
Referenced by ilECSAppEventListener\_sendNotification(), ilSystemNotification\compose(), ilMailSummaryNotification\send(), ilPaymentNotification\send(), ilRemoteObjectBase\sendNewContentNotification(), ilECSObjectSettings\sendNewContentNotification(), and ilAuthContainerECS\sendNotification().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Static getter for the installation signature.
@access public
Definition at line 2886 of file class.ilMail.php.
References ilUtil\_getHttpPath(), and ILIAS_WEB_DIR.
Referenced by ilSystemNotification\compose(), ilMailCronOrphanedMailsNotification\send(), ilMailSummaryNotification\send(), ilPaymentNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), sendMail(), and ilObjSurveyGUI\sendUserResultsMail().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 | @access public |
Definition at line 2766 of file class.ilMail.php.
References getCachedUserInstance().
Here is the call graph for this function:
|
static |
| string | $a_email | |
| string | $a_fullname |
Definition at line 2272 of file class.ilMail.php.
References ilMimeMail\_mimeEncode().
Here is the call graph for this function:| ilMail::appendInstallationSignature | ( | $a_flag = null | ) |
Setter/Getter for appending the installation signarue.
@access public
| mixed | boolean or nothing |
Definition at line 2867 of file class.ilMail.php.
References $appendInstallationSignature, and appendInstallationSignature().
Referenced by appendInstallationSignature(), and sendMail().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 @access public
| string | rcp_to |
| string | rcp_cc |
| string | rcp_bcc |
| string | m_subject |
| string | m_message |
Definition at line 1494 of file class.ilMail.php.
Referenced by sendMail().
Here is the caller graph for this function:| ilMail::checkRecipients | ( | $a_recipients | ) |
check if recipients are valid @access public
| string | string with login names or group names (start with #) |
Definition at line 1622 of file class.ilMail.php.
References $user_id, explodeRecipients(), getUsePear(), ilObjUser\getUserIdByLogin(), ilUtil\groupNameExists(), ILIAS_HOST, ilUtil\is_email(), and validatePear().
Referenced by validateRecipients().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMail::countMailsOfFolder | ( | $a_folder_id | ) |
count all mails of a specific folder @access public
| integer | id of folder |
Definition at line 631 of file class.ilMail.php.
| ilMail::deleteMails | ( | array | $a_mail_ids | ) |
Delete mails.
| array | mail ids |
Definition at line 856 of file class.ilMail.php.
References $ilDB.
Referenced by deleteMailsOfFolder(), and sendMail().
Here is the caller graph for this function:| ilMail::deleteMailsOfFolder | ( | $a_folder_id | ) |
delete all mails of a specific folder @access public
| integer | id of folder |
Definition at line 651 of file class.ilMail.php.
References $ilDB, $mail_data, deleteMails(), and getMailsOfFolder().
Here is the call graph for this function:| 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 @access 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 1096 of file class.ilMail.php.
References $log, __substituteRecipients(), getCachedUserInstance(), ilLoggerFactory\getLogger(), getUserIds(), replacePlaceholders(), sendInternalMail(), and sendMimeMail().
Referenced by sendMail().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMail::doesRecipientStillExists | ( | $a_recipient, | |
| $a_existing_recipients | |||
| ) |
Definition at line 289 of file class.ilMail.php.
References explodeRecipients().
Here is the call graph for this function:| ilMail::enableSOAP | ( | $a_status | ) |
Definition at line 352 of file class.ilMail.php.
| ilMail::explodeRecipients | ( | $a_recipients, | |
$use_pear = true |
|||
| ) |
explode recipient string allowed seperators are ',' ';' ' '
Returns an array with recipient objects
@access private
Definition at line 2511 of file class.ilMail.php.
References $use_pear, and ilLoggerFactory\getLogger().
Referenced by __getCountRecipient(), __getEmailRecipients(), __substituteRecipients(), checkRecipients(), doesRecipientStillExists(), getEmailsOfRecipients(), getUserIds(), parseRcptOfMailingLists(), and validatePear().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMail::fetchMailData | ( | $a_row | ) |
fetch all query data from table mail @access public
| object | object of query |
Definition at line 881 of file class.ilMail.php.
Referenced by getMail(), getMailsOfFolder(), getNextMail(), getPreviousMail(), and getSavedData().
Here is the caller graph for this function:| 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 |
@access public
Definition at line 470 of file class.ilMail.php.
References ilObjUser\_lookupId(), ilObjUser\_lookupPref(), and getCachedUserInstance().
Here is the call graph for this function:| ilMail::getAttachments | ( | ) |
get attachments @access public
Definition at line 2493 of file class.ilMail.php.
|
staticprotected |
Returns a cached instance of ilObjUser.
| integer | $a_usr_id |
Definition at line 2991 of file class.ilMail.php.
Referenced by _getUserInternalMailboxAddress(), distributeMail(), formatNamesForOutput(), getEmailOfSender(), getEmailsOfRecipients(), and replacePlaceholders().
Here is the caller graph for this function:| ilMail::getEmailOfSender | ( | ) |
get email of sender @access public
Definition at line 2449 of file class.ilMail.php.
References getCachedUserInstance(), and ilUtil\is_email().
Here is the call graph for this function:| ilMail::getEmailsOfRecipients | ( | $a_rcp | ) |
get email addresses of recipients @access public
| string | string with login names or group names (start with #) or email address |
Definition at line 1522 of file class.ilMail.php.
References $ref_id, ilObject\_getAllReferences(), ilObjGroup\_lookupIdByTitle(), explodeRecipients(), getCachedUserInstance(), ilObjectFactory\getInstanceByRefId(), getUsePear(), ilObjUser\getUserIdByLogin(), and validatePear().
Here is the call graph for this function:
|
static |
Builds an email address used for system notifications.
@access public
Definition at line 2323 of file class.ilMail.php.
References $_SERVER, $ilSetting, and ilUtil\is_email().
Referenced by ilMailSummaryNotification\send(), ilPasswordAssistanceGUI\sendPasswordAssistanceMail(), and ilPasswordAssistanceGUI\sendUsernameAssistanceMail().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMail::getMail | ( | $a_mail_id | ) |
get data of one mail @access public
| int | mail_id |
Definition at line 695 of file class.ilMail.php.
References $ilDB, $mail_data, $res, DB_FETCHMODE_OBJECT, and fetchMailData().
Here is the call graph for this function:| ilMail::getMailCounterData | ( | ) |
get mail counter data returns data array with indexes "total","read","unread" @access public
Definition at line 681 of file class.ilMail.php.
| ilMail::getMailObjectReferenceId | ( | ) |
| ilMail::getMailsOfFolder | ( | $a_folder_id, | |
$filter = array() |
|||
| ) |
get all mails of a specific folder @access public @param integer id of folder
| array | optional filter array |
Definition at line 574 of file class.ilMail.php.
References $ilDB, $query, $res, $row, and fetchMailData().
Referenced by deleteMailsOfFolder().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMail::getNewDraftId | ( | $usrId, | |
| $folderId | |||
| ) |
| int | $usrId | |
| int | $folderId |
Definition at line 912 of file class.ilMail.php.
References $ilDB.
| ilMail::getNextMail | ( | $a_mail_id | ) |
Definition at line 548 of file class.ilMail.php.
References $ilDB, $mail_data, $res, DB_FETCHMODE_OBJECT, and fetchMailData().
Here is the call graph for this function:| ilMail::getPreviousMail | ( | $a_mail_id | ) |
Definition at line 529 of file class.ilMail.php.
References $ilDB, $mail_data, $res, DB_FETCHMODE_OBJECT, and fetchMailData().
Here is the call graph for this function:
|
static |
Get salutation.
| int | $a_usr_id |
Definition at line 2929 of file class.ilMail.php.
References $lang, $lng, ilObjUser\_lookupGender(), and ilObjUser\_lookupName().
Referenced by ilTestManScoringParticipantNotification\buildBody(), ilSystemNotification\compose(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilLMMailNotification\send(), ilSessionMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilBuddySystemNotification\send(), ilDiskQuotaSummaryNotification\send(), ilMailCronOrphanedMailsNotification\send(), ilMailSummaryNotification\send(), ilPaymentNotification\send(), ilRegistrationMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), ilTestMailNotification\sendSimpleNotification(), and ilObjSurveyGUI\sendUserResultsMail().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMail::getSavedData | ( | ) |
get saved data @access public
Definition at line 1860 of file class.ilMail.php.
References $ilDB, $mail_data, $res, DB_FETCHMODE_OBJECT, and fetchMailData().
Referenced by savePostData().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMail::getSaveInSentbox | ( | ) |
Definition at line 380 of file class.ilMail.php.
References $save_in_sentbox.
Referenced by sendMail().
Here is the caller graph for this function:
|
static |
Get text that will be prepended to auto generated mails.
Definition at line 2916 of file class.ilMail.php.
References $ilSetting.
Referenced by sendMimeMail(), and ilMimeMail\Subject().
Here is the caller graph for this function:
|
private |
Definition at line 2956 of file class.ilMail.php.
References $use_pear.
Referenced by __getCountRecipient(), checkRecipients(), getEmailsOfRecipients(), and getUserIds().
Here is the caller graph for this function:| ilMail::getUserIds | ( | $a_recipients | ) |
get user_ids
| string | recipients seperated by ',' |
Definition at line 1324 of file class.ilMail.php.
References $log, $ref_id, ilObject\_getAllReferences(), ilObjUser\_lookupId(), ilObjGroup\_lookupIdByTitle(), explodeRecipients(), ilObjectFactory\getInstanceByRefId(), ilLoggerFactory\getLogger(), getUsePear(), ilObjUser\getUserIdByLogin(), ilUtil\groupNameExists(), and validatePear().
Referenced by distributeMail().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMail::isSOAPEnabled | ( | ) |
Definition at line 356 of file class.ilMail.php.
References $ilSetting, $soap_enabled, ilContext\CONTEXT_CRON, and ilContext\getType().
Referenced by sendMimeMail().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMail::markRead | ( | $a_mail_ids | ) |
mark mails as read @access public
| array | mail ids |
Definition at line 717 of file class.ilMail.php.
| ilMail::markUnread | ( | $a_mail_ids | ) |
mark mails as unread @access public
| array | mail ids |
Definition at line 764 of file class.ilMail.php.
| ilMail::moveMailsToFolder | ( | $a_mail_ids, | |
| $a_folder_id | |||
| ) |
move mail to folder @access public
| array | mail ids |
| int | folder_id |
Definition at line 811 of file class.ilMail.php.
| ilMail::parseRcptOfMailingLists | ( | $rcpt = '', |
|
$maintain_lists = false |
|||
| ) |
Definition at line 2124 of file class.ilMail.php.
References ilObjUser\_lookupLogin(), and explodeRecipients().
Referenced by sendMail().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMail::readMailObjectReferenceId | ( | ) |
read and set mail object id @access private
Definition at line 449 of file class.ilMail.php.
References ilMailGlobalServices\getMailObjectRefId().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| string | $a_message | |
| int | $a_user_id |
Definition at line 1050 of file class.ilMail.php.
References $result, getCachedUserInstance(), ilMailFormCall\getContextId(), ilMailFormCall\getContextParameters(), ilLoggerFactory\getLogger(), and ilMailTemplateService\getTemplateContextById().
Referenced by distributeMail(), sendInternalMail(), and sendMail().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMail::saveAttachments | ( | $a_attachments | ) |
set attachments
| array | array of attachments @access public |
Definition at line 2470 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 @access public |
Definition at line 2253 of file class.ilMail.php.
References sendInternalMail().
Referenced by sendMail().
Here is the call graph for this function:
Here is the caller graph for this function:| 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, | |||
$a_tpl_context_id = null, |
|||
$a_tpl_ctx_params = array() |
|||
| ) |
save post data in table @access 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 | |
| string | null | $a_tpl_context_id | |
| array | null | $a_tpl_ctx_params |
Definition at line 1803 of file class.ilMail.php.
References $ilDB, and getSavedData().
Here is the call graph for this function:| 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, |
|||
$a_tpl_context_id = null, |
|||
$a_tpl_context_params = array() |
|||
| ) |
save mail in folder @access 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 | |
| integer | $a_use_placeholders | |
| string | null | $a_tpl_context_id | |
| array | null | $a_tpl_context_params |
Definition at line 980 of file class.ilMail.php.
References $ilDB, $log, $user_id, and replacePlaceholders().
Referenced by distributeMail(), and saveInSentbox().
Here is the call graph for this function:
Here is the caller graph for this function:| 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) @access public |
Definition at line 1926 of file class.ilMail.php.
References $lng, __getCountRecipients(), __getEmailRecipients(), __substituteRecipients(), _getInstallationSignature(), appendInstallationSignature(), checkMail(), deleteMails(), distributeMail(), ilLoggerFactory\getLogger(), getSaveInSentbox(), ilMailingList\MODE_TEMPORARY, parseRcptOfMailingLists(), replacePlaceholders(), saveInSentbox(), sendMimeMail(), and validateRecipients().
Here is the call graph for this function:| ilMail::sendMimeMail | ( | $a_rcp_to, | |
| $a_rcp_cc, | |||
| $a_rcp_bcc, | |||
| $a_m_subject, | |||
| $a_m_message, | |||
| $a_attachments, | |||
$a_no_soap = false |
|||
| ) |
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 |
| bool | prevent soap @access public |
Definition at line 2363 of file class.ilMail.php.
References $_COOKIE, getSubjectPrefix(), and isSOAPEnabled().
Referenced by distributeMail(), and sendMail().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMail::setMailMessage | ( | $a_message | ) |
Definition at line 440 of file class.ilMail.php.
| ilMail::setMailRcpBc | ( | $a_rcp_bc | ) |
Definition at line 420 of file class.ilMail.php.
| ilMail::setMailRcpCc | ( | $a_rcp_cc | ) |
Definition at line 410 of file class.ilMail.php.
| ilMail::setMailRcpTo | ( | $a_rcp_to | ) |
Definition at line 400 of file class.ilMail.php.
| ilMail::setMailSendType | ( | $a_types | ) |
Definition at line 390 of file class.ilMail.php.
| ilMail::setMailSubject | ( | $a_subject | ) |
Definition at line 430 of file class.ilMail.php.
| ilMail::setSaveInSentbox | ( | $a_save_in_sentbox | ) |
Definition at line 375 of file class.ilMail.php.
Referenced by __construct().
Here is the caller graph for this function:
|
private |
Definition at line 2951 of file class.ilMail.php.
Referenced by validatePear().
Here is the caller graph for this function:| 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, |
|||
$a_tpl_context_id = null, |
|||
$a_tpl_context_params = array() |
|||
| ) |
Definition at line 927 of file class.ilMail.php.
References $ilDB.
|
private |
| <type> | $a_recipients |
Definition at line 2966 of file class.ilMail.php.
References explodeRecipients(), and setUsePear().
Referenced by __getCountRecipient(), checkRecipients(), getEmailsOfRecipients(), and getUserIds().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMail::validateRecipients | ( | $a_rcp_to, | |
| $a_rcp_cc, | |||
| $a_rcp_bc | |||
| ) |
| string | $a_rcp_to | |
| string | $a_rcp_cc | |
| string | $a_rcp_bc |
Definition at line 1881 of file class.ilMail.php.
References checkRecipients().
Referenced by sendMail().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 208 of file class.ilMail.php.
Referenced by appendInstallationSignature().
| ilMail::$ilias |
Definition at line 117 of file class.ilMail.php.
Referenced by __construct().
| ilMail::$lng |
Definition at line 124 of file class.ilMail.php.
Referenced by __construct(), getSalutation(), and sendMail().
| ilMail::$mail_counter |
Definition at line 161 of file class.ilMail.php.
| ilMail::$mail_data |
Definition at line 168 of file class.ilMail.php.
Referenced by ilFormatMail\appendSearchResult(), deleteMailsOfFolder(), getMail(), getNextMail(), getPreviousMail(), and getSavedData().
| ilMail::$mail_message |
Definition at line 201 of file class.ilMail.php.
| ilMail::$mail_obj_ref_id |
Definition at line 176 of file class.ilMail.php.
Referenced by getMailObjectReferenceId().
| ilMail::$mail_options |
Definition at line 133 of file class.ilMail.php.
| ilMail::$mail_rcp_bc |
Definition at line 199 of file class.ilMail.php.
| ilMail::$mail_rcp_cc |
Definition at line 198 of file class.ilMail.php.
| ilMail::$mail_rcp_to |
Definition at line 197 of file class.ilMail.php.
| ilMail::$mail_send_type |
Definition at line 183 of file class.ilMail.php.
| ilMail::$mail_subject |
Definition at line 200 of file class.ilMail.php.
| ilMail::$mail_to_global_roles = 0 |
Definition at line 205 of file class.ilMail.php.
| ilMail::$mail_use_placeholders = 0 |
Definition at line 202 of file class.ilMail.php.
| ilMail::$mfile |
Definition at line 131 of file class.ilMail.php.
|
protected |
Definition at line 223 of file class.ilMail.php.
| ilMail::$save_in_sentbox |
Definition at line 190 of file class.ilMail.php.
Referenced by getSaveInSentbox().
| ilMail::$soap_enabled = true |
Definition at line 204 of file class.ilMail.php.
Referenced by isSOAPEnabled().
| ilMail::$table_mail |
Definition at line 147 of file class.ilMail.php.
| ilMail::$table_mail_saved |
Definition at line 154 of file class.ilMail.php.
|
private |
Definition at line 207 of file class.ilMail.php.
Referenced by explodeRecipients(), and getUsePear().
| ilMail::$user_id |
Definition at line 140 of file class.ilMail.php.
Referenced by checkRecipients(), and sendInternalMail().
|
staticprotected |
Definition at line 228 of file class.ilMail.php.
| const ilMail::ILIAS_HOST = 'ilias' |
Definition at line 213 of file class.ilMail.php.
Referenced by checkRecipients(), ilRbacReview\getRoleMailboxAddress(), and ilRbacReview\searchRolesByMailboxAddressList().