zanni
Total posts: 70
29 Янв 2015 05:04

Hi,

Is it possible to set up a "subscription ending alert" to members at different intervals? For example - triggering alerts every 1 - 30 days before, 1 - 15 days before, and 1 - 5 days before the subscription ends.

I know I can send out one alert to members but can that be seperated into more?

D. Ashley

Последние изменения: 16 Дек 2024

Official Answer

You can configure it in plan parameters.

2015-01-29_17-14-25


chambersc VIP
Total posts: 37
04 Март 2015 19:29

Email alerts are configured in the plans but thye are still not being sent out


Sergey
Total posts: 13,748
05 Март 2015 03:46

Have you configured cron?


chambersc VIP
Total posts: 37
07 Март 2015 12:36

I have used the cron section on the cpnael for my server to enter: wget http://4thfrodshamscouts.org.uk/index.php?option=com_emerald& ;task=emcron.send_expire_alerts&secret=XXXXX

where XXXX has ben replaced wiht the secret word set in emerald and set it to run twice per day.

I configured the plans to issue alerts 28,14,7 1 days before expiry

I also configured a test subscription which should have generated an alert email but I am not getting any alerts.

Rather that having to go to my cPanel to setup the cron job, could you not provide a php file which generates and runs the cron job once itself based on the parameters set in. When I used Acyba subscriptions I did not have to create a cron job the component did it all.

If I enter the web browser http://4thfrodshamscouts.org.uk/index.php?option=com_emerald& ;task=emcron.send_expire_alerts&secret=xxxx where xxx is my secret word, emails are generated and sent out.

Why does the cron set up in the webserver Cpanel not work?

Addtionally, whent he meails were generated it also sent a reminder to a user who had already purchased a follow on subscription which is dated to start from the end of the current subscription period. How do I stop further reminders going out to users who purchase renewal subscriptions before current subscription expires?


Sergey
Total posts: 13,748
08 Март 2015 04:01

chambersc I configured the plans to issue alerts 28,14,7 1 days before expiry

Should it be 28,14,7,1?

chambersc I have used the cron section on the cpnael for my server to enter: wget http://4thfrodshamscouts.org.uk/index.php?option=com_emerald& ;task=emcron.send_expire_alerts&secret=XXXXX

What if you try to open this URL in browser? DO you cee any error?


chambersc VIP
Total posts: 37
08 Март 2015 12:46

The trigger days are entered correctly in the plan - it was just a typo in the request above.

If I put the url into the browser as above it does not ecognise the command. If you put it in without the "wget" at the start of the url, it triggers the email alerts.


Sergey
Total posts: 13,748
09 Март 2015 09:17

Then you might not have wget commang installed in your system. Access with SSH and try this command.


chambersc VIP
Total posts: 37
09 Март 2015 17:33

I have absolutely no idea how to do that


Sergey
Total posts: 13,748
10 Март 2015 02:32

Then ask your server administrator if wget is installed and accessible.

How did you added cronjob? Through control panel? Then there should be SSH option in control panel too.


chambersc VIP
Total posts: 37
10 Март 2015 17:37

I have asked about wget and waiting for a response.

Yes I mange my server through cPanel. I cannot use the SSH option as Java is blocking it as it willnot accept the self-signed certficate :-(


Sergey
Total posts: 13,748
11 Март 2015 01:24

Ok, I see. Let me now when you have an answer.


chambersc VIP
Total posts: 37
13 Март 2015 08:42

I have ben advised that the wget command is not available with account due to it not being fully secure and the location of the files need to be in a folder with root access. If I need to use wget commands I will need to purchase a dedicated server or VPS. This is not an option for me, os there needs to be another way to run the cron (other modules are running crons without wget and with little user setup). can you look into another way through the user interface to setup set the cron period to run and do it within emerald


Sergey
Total posts: 13,748
17 Март 2015 06:35

Then you can use curl. Tell them that your purpose it to load special URL on schedule. They have to have at least something.


chambersc VIP
Total posts: 37
27 Сен 2015 11:35

Still struggling wiht getting this to work through teh Cpanel cron coontrol panel!

I have now been told that I should use curl, would this be the right command to enter in the cron command field (I based this on that used within Acyba mailing joola support forum for triggering their email cron!):

curl --silent --compressed "http://4thfrodshamscouts.org.uk/index.php?option=com_emerald&task=emcron.send_expire_alerts&secret=xxxxx" >/deve/null 2>&1

where xxxx is replaced by my secret word.


Sergey
Total posts: 13,748
29 Сен 2015 11:52

Please read some ideas of other users how to use CURL here. On every server it can be used differently. Please ask you server administrator or SSH to your server and try to run different commands in console.


Davidmenk3
Total posts: 2
16 Дек 2024 10:32

chambersc I have ben advised that the wget command is not available with account due to it not being fully secure and the location of the files need to be in a folder with root access. If I need to use wget commands I will need to purchase a dedicated server or VPS. This is not an option for me, os there needs to be another way to run the cron (other modules are running crons without wget and with little user setup). can you look into another way through the user interface to setup set the cron period to run and do it within emerald

It sounds like you're in a bit of a pickle! Unfortunately, the wget command is often restricted for security reasons, and if you're looking for more control, a dedicated server might be the solution. But since it's not an option, let's figure out another way! There are usually alternatives within the user interface to set up crons without needing wget. I’m sure there’s a way to get it working in Emerald without the hassle, and without needing to upgrade to a dedicated server. Let’s dig into it!

Работает на Cobalt