Notify Site owner when membership expires?

I know that Dolphin has a function to notify a user when their membership has expired. Where is the code for this?

I would like to have the site notify me, the site owner, when a user's membership expires as well. Has any put this in place?

Quote · 13 Nov 2011

I think what you're looking for is in /inc/classes/BxDolCronCmd.php ... Look for this section:

        // - Membership check -
    

Right below that is sends the letters.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 13 Nov 2011

Thank you mscott. That did help me find the file that sends the letters. Unfortunately, I'm not sure of how to use that to send a duplicate to my email as well.

Any one have any ideas?

Thank you.

Quote · 18 Nov 2011

Ok, I just realized my first answer wasn't really what you needed.. that file I pointed out just tells Dolphin to send the letters, BUT the actual function that sends them is in /inc/admin.inc.php

If you look in that file for "function mem_expiration_letter" you'll find it.

 

Would you be ok if it just copied you on the exact email it sends to the member? If so you should be able to just change this line:


 $recipient  = $p_arr['Email'];

 

To something like:


 $recipient  = $p_arr['Email'] . ", you@youremail.com";

 

The period between the two joins them, the comma that is inside the quotes will seperate the two addresses. The only downside to this is the member will be able to see your email address in the "to" section, but it will get the job done.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 18 Nov 2011

Thank you very much mscott. Your help is much appreciated!

Quote · 18 Nov 2011

No problem, glad I could help.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 18 Nov 2011
 
 
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.