Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember General Questions › After expiration notification sent only if member has not renewed yet?
- This topic has 8 replies, 3 voices, and was last updated 8 years, 4 months ago by dwt55305.
-
AuthorPosts
-
September 20, 2016 at 5:20 pm #13725dwt55305Member
I am trying to confirm that the “x number of days after expiry” notification email will only be sent if the member has not yet renewed their membership. It seems to me I read a message to that effect but I am unable to locate it at this time.
I am trying to guide my client through using these notifications in the best strategic way. Can you please confirm this for me right away?
Also wondering if it would be possible to “hack” the before expiry notification code to provide for more than one notification on additional dates.
September 20, 2016 at 5:44 pm #74200wzpModeratorIf a membership gets renewed before the “x number of days after expiry” notification email has a chance to be sent, then the expiration date gets pushed into the future; and they should not be receiving an email; until the next expiry date has gone by.
September 20, 2016 at 6:38 pm #74201dwt55305MemberThank you very much for your prompt reply. This confirms what I thought I had read before.
I’m still wondering if it is possible to add more pre-expiration emails by editing the plugin php and/or functions.
Could you address this question, too?
Thank you in advance!
September 20, 2016 at 6:50 pm #74202wzpModeratorIt “…won’t be very trivial…” to add such a feature:
Perhaps, you could also send a warning email, 1 day before the expiry date?
September 20, 2016 at 7:07 pm #74203dwt55305MemberDo you mean manually send a warning email? If I set up a automatic email 15 days before expiration, in order to send a second warning email x days before the expiration date, that would require monitoring the members’ list daily to look for upcoming expirations, and sending each one an email manually. This would become a nightmare, but it seems to me that it ought to programmable much more readily, say by replicating the php code for the “eMember_before_expiry…” elements in emember_menu_email_settings.php.
Can you pose this question to your development team? I can’t imagine that there are not many other users of the plugin who would be very appreciative of the ability to send 2 or 3 pre-expiration auto emails.
Thanks!
September 20, 2016 at 8:10 pm #74204wzpModeratorThere are 3 expiry related emails possible:
- X number of days BEFORE expiry.
- 1 day AFTER expiry.
- X number of days AFTER expiry.
You are saying you want ***MORE*** “before expiry” emails? Sort of like a “countdown” to doom, er, expiry stream of emails???
September 20, 2016 at 8:51 pm #74205dwt55305MemberExactly right! Something like 15 days before expiry, 7 days before expiry, and 1 day before expiry. Each one could have a different message, with links to a renewal page and so on.
To be precise, I personally don’t want More, my client wants more. I just want to know which files would need to be modified in order to make it happen. I have looked in my site’s debug_cron log file and I have seen how a expiry notification appears there when it is executed by the daily cron job. So it seems to me that the daily cron should be adaptable to deal with multiple versions of expiry alerts, shouldn’t it?
I would think it would be a matter of running the same kind of check on the member dates due to expire at each of the chosen lead intervals and using the same core tool for each variant to send out the email(s) when the impending expiry date is X days off.
Anyway, I would like to be able to do this if it is something you guys are willing to outline for me.
Thanks!
September 21, 2016 at 1:14 am #74206adminKeymasterYou would need to be a really good PHP developer to be able to modify the code that handles that functionality. If you are not then it will likely be a disaster trying to modify the code (since we don’t do support for custom coding).
With that said, the eMember_email_notifier_cronjob() function in the following file is what you are looking for:
eMember_cronjob_functions.php
September 21, 2016 at 3:22 pm #74207dwt55305MemberThanks for that. I’m kind of surprised though. I’d have really thought you might view this as a positive enhancement enough to put one of your developers on it. I suspect that for your developers, someone who is already intimate with your plugin, it would be relatively quick and easy (and I can see how it would be much more difficult for someone from outside.)
The good news is I managed to talk my client “down off the ledge” and she is ok with the existing notification options.
Cheers!
- X number of days BEFORE expiry.
-
AuthorPosts
- You must be logged in to reply to this topic.