MyBB Community Forums

Full Version: Send automatically email | New Reply
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need to set up default how to send automatically email to user after his thread has a new reply.
Thanks.
That is what subscriptions are for. When user subscribes a thread, he receives notification via email.
ACP -> Templates & Styles -> Templates -> Your Theme -> Member Templates -> member_register

Find:
Quote:<select name="subscriptionmethod" id="subscriptionmethod">
<option value="0" {$no_subscribe_selected}>{$lang->no_auto_subscribe}</option>
<option value="1" {$no_email_subscribe_selected}>{$lang->no_email_subscribe}</option>
<option value="2" {$instant_email_subscribe_selected}>{$lang->instant_email_subscribe}</option>
</select>

Replace With:
Quote:<select name="subscriptionmethod" id="subscriptionmethod">
<option value="2" {$instant_email_subscribe_selected}>{$lang->instant_email_subscribe}</option>
<option value="1" {$no_email_subscribe_selected}>{$lang->no_email_subscribe}</option>
<option value="0" {$no_subscribe_selected}>{$lang->no_auto_subscribe}</option>
</select>

Run this SQL query to set all existing users to the same thread subscription mode:

UPDATE `mybb_users` SET `subscriptionmethod` = 'X';

Change X to the value of the subscription method. 0 corresponds to "Do not subscribe", 1 corresponds to "No email notification" and 2 corresponds to "Instant email notification".