Events Made Easy › Forums › How do I … › Birthday mails
- This topic has 10 replies, 2 voices, and was last updated 2 years, 7 months ago by Franky.
-
AuthorPosts
-
Sat 9 Apr 2022 at 17:10 #64064AnonymousInactive
Great job implementing this option Franky 🙂
I tried to do a test (as well with the dev version earlier yesterday as with the production release yesterday evening) but I received no mail.1) created birthday mail template
2) changed birthdate of test person to today, checked to send mails in person options
3) checked mail settings in the settings tab
4) checked test mail to see if SMTP still works (and it did ;)-) )Any idea what I am missing? 🙂
Kind regards
KevinSat 9 Apr 2022 at 17:38 #64065FrankyKeymasterDid you activate the birthday email option? I ought to disable the per-person setting if that option is not enabled, but it is only a first implementation 🙂
See the setting in the “Other” tabSat 9 Apr 2022 at 23:09 #64068AnonymousInactiveYes, activated/deactivated, I was a little confused with “new members”
No luck yet, it works on your side?Sat 9 Apr 2022 at 23:16 #64069FrankyKeymasterIt did in my original tests … I’ll try on one of my live sites
Sat 9 Apr 2022 at 23:26 #64070FrankyKeymasterWell it works, but as I went through the code I saw I needed a small correction (only the removal of line 2378 is needed, but in your version the linenumber will be 2372):
https://plugins.trac.wordpress.org/changeset/2707523/Edit: check your “sent emails” in the EME “Email management” section, tab “sent emails”. And: birthday emails are sent when the cron for members runs: once a day at around midnight, but due to wordpress weird logic of a day having fixed 24 hours, it might be planned at 23:00 … so then your mail will arrive the end of the day (the next version will plan the cron a bit later to take that into account).
If you want to run the cron manually, feel free to do so.Sat 9 Apr 2022 at 23:40 #64071FrankyKeymasterAnd I just found another logic error: I in fact don’t check if people want a birthday email or not (but I checked the global setting wrongly as indicated above).
This fixes the sql:
https://plugins.trac.wordpress.org/changeset/2707524/Sun 10 Apr 2022 at 00:02 #64072FrankyKeymasterTo fix those small things, I released 2.2.71
Sun 10 Apr 2022 at 09:18 #64073AnonymousInactiveNice work Franky 🙂
Tested and worked
And for the cron job, I think I will change some things to separate the birthday mail.
Or just change the schedule of the job 😉
Thanks a lot for the quick responses (late at night 😉 )Sun 10 Apr 2022 at 09:36 #64074FrankyKeymasterThe latest version (2.2.71) changes the cronjobs a bit (to start at 01:00 and not midnight), that should take care of summer/wintertime issues too
Sat 23 Apr 2022 at 17:22 #64098AnonymousInactiveHi Franky,
can it be that there are two schedules activated? I think two mails are sent, concerning the email management overview in EME.
17/04/2022 1:05 AM 17/04/2022 1:58 AM
17/04/2022 1:43 AM 17/04/2022 1:58 AMOr am I mistaken? 🙂
kind regards,
KevinSat 23 Apr 2022 at 21:45 #64099FrankyKeymasterThe schedule runs only once a day. So maybe check (with a plugin) the WP schedules, search for “eme_cron_daily_actions”.
-
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.