$count
$count
the mailbot that sends private messages between members
sendEmail(string $subject, string $from, string $to, string $title, string $body, string $language) : object
actually send out emails using a common BW template
string | $subject | the subject line for the message |
string | $from | the email address of the sender |
string | $to | the email address of the recipient |
string | $title | an optional title to show in the message (HTML H1 tag) (default: false) |
string | $body | the plaintext body of the message |
string | $language | the language code used in the message (default: 'en') |
the result from the MOD_mail::sendEmail call
_updateMessageStatus(int $msgId, string $status, int $IdTriggerer) : \nothing
update the DB with new message statuses
int | $msgId | the id of the message for which to update the DB |
string | $status | the status to set for the message |
int | $IdTriggerer | the user id of the user running the bot (default to 0) |