disable autogenerated emails

I am doing some work on my site and every time I change a specific detail Dolphin generates and sends out an update email. I would like to turn that function off temporarily so I don't spam my users with multiple update messages.

It would be nice to have an option in the Email Templates to turn off and on specific auto-generated emails. However this does not exist, so I would accept a quick and dirty code edit to disable all generated emails from being sent.

Thanks!

Quote · 7 Jun 2013

Sorry to ask, but what emails are you talking about?

Have you got the spy module installed and are these messages generated by the spy module? or...

If I know what type of messages you're talking about, I might be able to help

Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information
Quote · 7 Jun 2013

At the moment, membership levels. I'm changing the naming system on my site and I don't want to send out an email every time I modify someone's profile. However, with the huge list of Email Templates in 7.1.x, with a tab for each one and a settings section, I can't see how it would be hard to put an on/off switch on each tab...

Quote · 7 Jun 2013

The issue is that every module calls the template, meaning you would have to change every module to get this working.

In this case you need to look at membership_levels.inc.php (inc folder)

From line 643 you see the following code

 

 bx_import('BxDolEmailTemplates');
    $oEmailTemplate = new BxDolEmailTemplates();
    $aTemplate = $oEmailTemplate->getTemplate('t_MemChanged', $iMemberId);

    $aMembershipInfo = getMembershipInfo($iMembershipId);
    $aTemplateVars = array(
        'MembershipLevel' => $aMembershipInfo['Name']
    );

    if ($isSendMail)
        sendMail( $aProfileInfo['Email'], $aTemplate['Subject'], $aTemplate['Body'], $iMemberId, $aTemplateVars);

 

What you need to do is set  /* before on the empty line before it (line 642)

Now set */ after the last line, on the empty line (line 654)

 

Be careful, see the difference between the two things you need to set?

 

/*

all text between the /* and */ is seen as text and not executed. Meaning the email template is not loaded and no email is send.

*/

 

Hope this helps!

 

Good luck,

 

 

Denre

Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information
Quote · 8 Jun 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.