$count
$count
the mailbot that sends messages for forum/group posts
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
_buildUnsubscribeLink(object $notification, string $MemberIdLanguage) : string
build a url to unsubscribe from forum notifications
object | $notification | the notification object returned by the SQL query |
string | $MemberIdLanguage | the language code to use |
the url to unsubscribe
_buildMessage(object $notification, object $post, object $author, string $language) : string
return the formatted email content for $msg
object | $notification | the message notification object as returned by mysql_fetch_object |
object | $post | the post returned by the SQL query |
object | $author | the member who wrote the post |
string | $language | the language code used for the message |
the formatted email message body