Send notifications to all users of one or more spaces about a publication. Emails can be sent via Brevo API, as a campaign.
To use translations customized in the space's module settings, use the t()
function of the Mn
model. The $message
param must be created by the Yii::t()
function in order to have automatic messages creations with the yii message/extract-module
function. But this $message
param must be in english without replacement of the placeholders, so use , [], 'en'
params in the Yii::t()
function. E.g.:
$mn = new Mn(['space' => $this->space]);
echo $mn->t('notification', Yii::t('MassNotificationModule.notification', 'Message from {displayName}:', [], 'en'), ['displayName' => $user->getDisplayName()]);
If minimal HumHub version changes, update the PHP version in composer.json to the minimal PHP version for this HumHub and update: composer update
For a git based installation you'll need a composer install
on the module root in order to fetch dependencies.