Like in title. Is that possible to send all new nodes in one mail instead of each one in a seperate email.
I have a site which has lot of events. Few events are added daily. Users are automaticaly subscribed to those events.
I would like to send them one email a day with all events added during las 24 hours.
Now each event is sent in separate email which is a little bit anoying..
I have set interval to daily but it seems not to work. THere is still few email a day sent to each user.

Please write, what am doing wrong, or maybe this functionality is not available in Subscribtion module ?

Thanks

CommentFileSizeAuthor
#4 Clipboard02.jpg23.32 KBbenone

Comments

salvis’s picture

Category: feature » support
Status: Active » Fixed

Setting the send interval to daily does not combine mails, it just holds them back until a day has passed and then sends a bunch of them one right after the other. You're not saying that this doesn't work as I just described, are you?

To combine multiple mails into one you need to also enable digest mode.

benone’s picture

I can't find where to enable digest mode. Could you tell me where is it ?

salvis’s picture

admin/settings/subscriptions/userdefaults/settings

benone’s picture

StatusFileSize
new23.32 KB

I have the newest Subscriptions - 6.x-1.1 , I have just downloaded and updated the older version.
And I promise there is no digest mode.
I upload attachment.

benone’s picture

I tried dev version also and still the same.
No digest option in User defaults.
Have drupal 6.15.
What can be wrong ?

benone’s picture

Hey again. Sorry for my questions, I forgot I have custom module with form alter to hide subscriptions settings on users 'my account' page. This also hided settings for admin.
Everything seems to be fine now.

Is there any other possibility to hide Settings for users ?

salvis’s picture

There's the "Hide the Overview page from your users" checkbox.

In addition there's "Visibility of controls."

Please do look at the configuration pages before asking questions.

benone’s picture

yes, there is, I noticed that and forgot to write about that fact.

What I noticed today:

I have cron run every hour.
I added 4 events. 3 where sent in a digest.
after an hour came another digest with 4th event. only one event in a digest.
does it mean the digest interval depends on cron run ?

salvis’s picture

Yes, notifications are sent during cron only. Nothing is sent until cron runs (and it's not on hold by the send interval).

benone’s picture

So to completelty understand how interval works... :)

if

I have interval = daily && digest mode = checked && cron run = every hour && one new content node written in the morning and the second one written in the afternoon and the third one written in the evening,

then

user will receive 3 digest emails a day or 1 a day with those 3 contents ?

Sorry if my questions are trivial or crude , I just want to understand how INTERVAL and DIGEST MODE work in this module.

salvis’s picture

He should receive the first mail within an hour and the next one (with two items) about 24 hours later and after that one with three each day.

benone’s picture

That is clear now.
Will test.
Can I specify the hour , when daily digest is sent ?

salvis’s picture

No, but you could run cron only once a day.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ploc’s picture

There is something I don't understand : the interval can be set on a "per user" basis. But if I want to change the interval, existing subscription won't be updated to the new interval. So it seems that the interval is in fact linked to the subscription, not to the user.

Am I wrong ?

It is a shame not to be possible to change the interval of existing subscriptions. It is a pain to explain that you must unsubscribe every subscription, change the interval in your account preferences, then subscribe again to every previous subscriptions...

Please let met know if there is something I did not understood...

ploc’s picture

Status: Closed (fixed) » Active

Maybe I should open another issue. Let me know if I should do it that way.

salvis’s picture

Status: Active » Fixed

Indeed, this is not related to the title of this issue.

The send interval is set for the site, for the user (when the user changes the default settings), and for each subscription (when the subscription is entered).

You could make the send intervals visible (again by site and by user); then your users can change them without having to recreate the subscriptions.

Please open a new issue if you wish to pursue this any further.

ploc’s picture

No need for a new issue, your answer gave me the solution. I'll open a new issue next time, if needed.

By the way, I think we can say that the "per user" setting is set for the user as the default value for new subscriptions. You can also set the "interval parameter" as visible if you want users to be able to change the interval for existing subscriptions.

I think this is a useful information for users.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

salvis’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

peterx’s picture

I started a separate child page on digests at http://drupal.org/node/1670516

salvis’s picture

Thank you. Some of the information is not accurate:

The central settings, including Send interval, are only defaults for new users. If you change them, they do not change existing users.

They do change existing users as long as those have not saved their settings.

then one after three hours

I don't think this is right. You must have had something else in your database that interfered.

If you change the Send Intervals, you have to wait for at least the sum of the old and new interval plus two cron periods, before the system has recovered from the change.