Page 1 of 1
Email Notification Sign Up
Posted: 27 Sep 2007, 05:04
by karthik085
Hi,
I am using Mantis 1.0.8 and would like to keep all email notifications on except for new user sign-ups - I shouldn't get any mail when an user creates an account. Please let me know how this can be done.
Thanks.
Posted: 27 Sep 2007, 11:10
by zakman
What about using this condition flag?
# note that if this is disabled, sign-up and password reset messages will
# not be sent.
$g_enable_email_notification = ON;
$g_enable_email_notification
Posted: 27 Sep 2007, 13:23
by karthik085
If i turn that off - all email notifications are turned off. I want everything on except new signup notifications.
Posted: 27 Sep 2007, 14:43
by zakman
ok,
in your config_inc.php, put:
$g_notify_new_user_created_threshold_min = NOBODY;
instead of:
$g_notify_new_user_created_threshold_min = ADMINISTRATOR;
Tell me if this helped you.
Posted: 27 Sep 2007, 15:26
by karthik085
Ah...I forgot to mention - I am using Joomla and joomla - mantis bridge provided by nuy.info
[
http://nuy.info/downloads/index.php?dir ... bo/mantis/]
When a joomla user logins in for the first time in mantis - the mail gets sent.
Is there any other way to turn the notification off?
$g_joomla_enable_email_notification = OFF;
Posted: 27 Sep 2007, 17:32
by karthik085
Figured it out - I added this following option:
$g_joomla_enable_email_notification = OFF;
in config_inc.php
and modifed code in core/email_api.php
function email_signup( $p_user_id, $p_password, $p_confirm_hash ) {
if ( ( OFF == config_get( 'send_reset_password' ) ) || ( OFF == config_get( 'enable_email_notification' ) ) ) {
return;
}
to be
function email_signup( $p_user_id, $p_password, $p_confirm_hash ) {
if ( ( OFF == config_get( 'send_reset_password' ) ) || ( OFF == config_get( 'enable_email_notification' ) )
|| ( OFF == config_get( 'joomla_enable_email_notification' ) )
) {
return;
}
Any better solution would be appreciated. Thanks.