It's a very good idea to let users decide if they want to receive an email if they got a new private message. But I would like the users get used to email notification. So they have to notice this. By default, it's deactivated now and not many activate it.

My suggestion is that the admin can select the default email notification on the settings page. User settings still dominate this, of course.

What do you think about this?

Additionally, I would like to select another option to just get one email saying that I have at least one message wainting until I logged in again. But this is another feature, I suppose a more advanced one.

CommentFileSizeAuthor
#5 privatemsg_set_default_to_digest.patch2.11 KBJomel

Comments

csc4’s picture

An alternative would be to display the users privatemsg settings on the privatemsg pages - this would bringthem to mind and match quite a few other UIs which have a 'my account' 'my preferences' type area

wheatbix’s picture

I would like to echo the request for private message notification settings within the module.
For some reason my site has decided it does not want to send messages by default. Which I think was caused by installing a login manager.
But I would love to be able to change the default setting back to daily messages.

If anyone knows how to do this, or has a work around, please post it here.
Thanks
Mike
aussiebikes.com

terrybritton’s picture

Change this line in privatemsg.module

#default_value' => isset($edit['privatemsg_mailalert']) ? $edit['privatemsg_mailalert'] : PRIVATEMSG_MAIL_NONE,

to this

#default_value' => isset($edit['privatemsg_mailalert']) ? $edit['privatemsg_mailalert'] : PRIVATEMSG_MAIL_DIGEST,

for daily messages.

terrybritton’s picture

Change the default value in privatemsg.module from:

'#default_value' => isset($edit['privatemsg_mailalert']) ? $edit['privatemsg_mailalert'] : PRIVATEMSG_MAIL_NONE,

to:

'#default_value' => isset($edit['privatemsg_mailalert']) ? $edit['privatemsg_mailalert'] : PRIVATEMSG_MAIL_DIGEST,

for daily messages. Or change it to PRIVATEMSG_MAIL_INDIVIDUAL for notification on every message.

Jomel’s picture

StatusFileSize
new2.11 KB

terrybritton: I don't think that's enough, that won't take effect until the user updates their settings.
I've attached a patch which changes the default to DIGEST (i.e. daily messages), even if privatemsg_mailalert is unset.
This is just to help people patch their own copy, this is not intended to be incorporated into the distributed version.
Instead there ought to be a preference to set the default.

esadot’s picture

I second.
Does the feature is intend to be incorporated?

Thanks in advance,

Foodster’s picture

Instead there ought to be a preference to set the default.

Yup, i agreed on that. someone actually has a patch on that but need review, well just checking if anyone able to help http://drupal.org/node/132105

chx’s picture

Version: » 5.x-2.x-dev
Status: Active » Fixed
chx’s picture

A modified version of the linked issue is committed which I believe is enough to close this one.

Anonymous’s picture

Status: Fixed » Closed (fixed)