Email Notification Sign Up

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
karthik085
Posts: 10
Joined: 27 Sep 2007, 04:59

Email Notification Sign Up

Post 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.
zakman
Posts: 18
Joined: 04 Mar 2007, 21:16
Location: Cairo, Egypt

Post 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;
Best Regards,
ZakMan
karthik085
Posts: 10
Joined: 27 Sep 2007, 04:59

$g_enable_email_notification

Post by karthik085 »

If i turn that off - all email notifications are turned off. I want everything on except new signup notifications.
zakman
Posts: 18
Joined: 04 Mar 2007, 21:16
Location: Cairo, Egypt

Post 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.
Best Regards,
ZakMan
karthik085
Posts: 10
Joined: 27 Sep 2007, 04:59

Post 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?
karthik085
Posts: 10
Joined: 27 Sep 2007, 04:59

$g_joomla_enable_email_notification = OFF;

Post 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.
Post Reply