nican VIP
Total posts: 392
26 Oct 2015 15:04

Hello, in order to receive a notification immediately when a user post a new content on the site in notification settings I chose:

  • send notifications immediately
  • subscribe me to each new record

(I am not following the section/categories though)

Anyway, when I log into the site I do see notification for new records awaiting approval, but the email are not being sent

I have this cronjob running every 30 minutes

wget -O /dev/null " http://mysite.net/index.php?option=com_cobalt& ;task=cron.sendAlert&secret=xxx" > /dev/null

(the domain is just an example and the secret word is different)

The cron seems to be running normally

--2015-10-26 12:00:01--   http://mysite.net/index.php?option=com_cobalt& ;task=cron.sendAlert&secret=xxx
Resolving www.mysite.net... 000.00.00.00, 000.00.00.00, 2400:cb00:2048:1::681c:e36, ...
Connecting to www.mysite.net|000.00.00.00|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [text/html]
Saving to: “/dev/null”

     0K                                                        0.00 =0s

2015-10-26 12:00:03 (0.00 B/s) - “/dev/null” saved [0/0]

Please let me know if I am missing something here.

Thank you

Last Modified: 28 Oct 2015


klox7 VIP
Total posts: 914
26 Oct 2015 19:15

Try

curl -A "cobaltcron" " http://domain.com/index.php?option=com_cobalt& ;task=cron.sendAlert&secret=xxx"

and check examples here


nican VIP
Total posts: 392
27 Oct 2015 08:26

Thanks klox7, but it seems to me that the cron is running fine

--2015-10-26 12:00:01--   http://mysite.net/index.php?option=com_cobalt& ;task=cron.sendAlert&secret=xxx
Resolving www.mysite.net... 000.00.00.00, 000.00.00.00, 2400:cb00:2048:1::681c:e36, ...
Connecting to www.mysite.net|000.00.00.00|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [text/html]
Saving to: “/dev/null”

     0K                                                        0.00 =0s

2015-10-26 12:00:03 (0.00 B/s) - “/dev/null” saved [0/0]

I also tried to just copy/paste the cron url in the browser, still no alerts are being sent

I will try a different format anyway, just to see what happens


Sergey
Total posts: 13,748
27 Oct 2015 12:04

Note that notifications that was showed in the list are no longer considered to be unalerted. SO if you check notifications in the list before cron, nothing will be sent.

Also note that there is parameter how often. If it once a day, then only next day trigger will send notifications.


nican VIP
Total posts: 392
28 Oct 2015 08:58

Sergey Note that notifications that was showed in the list are no longer considered to be unalerted.

I know but it's not due to that.

But I just noticed this in my type configuration

cobalt_email_alerts

can this be the problem? I guess so...

BTW how is there any possibility to disable email alerts at all, but global admin still receive an email when a record is awaiting approval? Should I maybe make my user a moderator. Have to look into that...


Sergey
Total posts: 13,748
28 Oct 2015 10:26

Every event in sction parameters have access level. Set all everts and also Allow Follow only for special users. Then only those users will see subscribe button and get notifications.

Powered by Cobalt