Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
[GitHub Bug #1758] Email notifications not being sent. (NOW with solution!)
whu606
MVP
Vanilla version 2.1b1
Users aren't getting emails when selected in Notification preferences, neither old or new users.
Popup notifications work as expected: on when selected, off when unselected.
There is no issue with emails being sent per se.
Emails are being sent out, as I received a confirmation email when I created a test user account.
In config:
$Configuration['Preferences']['Email']['ConversationMessage'] = '0';
This is how I want it, as I want all options unselected for new users.
In Preferences in GDN_User:
a:1:{s:25:"Email.ConversationMessage";s:1:"1";}
There's nothing in the error logs to suggest that emails are not being sent.
I've gone through threads on here, but nothing seems to answer the issue.
Anyone got any ideas?
I'm more stumped than Stumpy McStump, the stumpiest man in Stumpville.
Tagged:
0
Comments
I tested in Vanilla 3 with these preferences...
sent a message to to admin using pm
not sure what you are asking.
if you want all users to receive notification of pm Messages via email in config.php
$Configuration['Preferences']['Email']['ConversationMessage'] = '1';
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine
Thank for responding.
What I want is the emails that are supposed to go out when a user has email notification checked to, in fact, go out!
Are you suggesting that I need to have the email configuration in config set to 1 to achieve this?
If that is the case, then it means that any new user will have that setting, which I can live with, but would rather avoid.
the config settings effect the defaults for new users
that is, what checkboxes they will see when they click edit preferences.
actually if you want all new users to never get e-mails, until they change the preferences.
As far as changing preferences for a specific user.
re: previous message..
I just went into admin user and changed the preferences for admin to get email from if a user sent a personal message. I logged in as peregrine on my localhost and sent a pm to admin.
the admin user received an e-mail
The same would be true for any user.
Point being, I don't experience a bug.
all "old users" - need to set their setting to what they want.
as far as receiving mail on their end they have to make sure no e-mail is being blocked or being sent to spam folder.
do you have an smtp user set up in config?
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
are these set up correctly - you may need to fill in host user and password
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine
My email setup is fine.
That's why I said that the test user got the confirmation email.
What they don't get is the notification email, and that is what is stumping me.
If there were NO emails, fair enough; but one without the other?
set your preferences for a testuser1
Notify me of private messages. e-mail checked.
login as testuser2
send testuser1 a pm from testuser2
see if they get a notification e-mail.
'ConversationMessage' refers to pm's not comments as I'm sure you know.
see if testuser1 gets an e-mail
might be some things filed on github regarding
https://github.com/vanillaforums/Garden/issues/1758
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine
Those are the steps I took before posting this as a problem!
Test user got the email confirmation on joining, but after logging in as them, and setting their preferences for Conversation emails, then sending them a PM from my account, zip.
Hence the stumped!
well, now its clear what you did.
I found the same issue - the first message sent via pm to a user doesn't get notification.
same as the github issue I pointed out.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I suppose a possible change might be - you could also change line 449 in
applications/conversations/models/class.conversationmodel.php
seemed to work for me.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@Peregrine
Thanks very much for that.
I didn't check out the GitHub link last night (half a shandy too many...)
I'll have a go now and report back!
@Peregrine
Thank you so much for helping out again (again!)
That did the trick perfectly.