pre67vw
  • Posts: 9
  • Joined: 21/02/2012
I've just gone through an upgrade to version 1.9.5.5

Initially the update had turned off everyone's notification emails 😞 , I then manually turned on my notifications and noticed that it updated the database yaf_user.NotificationType to 30 - so I then did an update query to set all users to this value. Notifications are now on, but everyone is receiving 3 notification emails instead of just one.

Can someone tell me where I'm going wrong, or point me to where I can fix this?

Thanks.
Sponsor
JP
  • Posts: 398
  • Joined: 08/01/2009
Have had this problem since 1.9.5. The record is 13 emails about the same thing...
On a lucky day one is sent, most common is 2-3 mails also for forum registrations and such...

Do not think it's an email provider thingy.... Rather a kind of too quick "oops, no contact - better try to send again" type of evaluation in the forum software... Didn't do that with 1.9,4 if I remember correctly.
He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Old Chinese Proverb]
pre67vw
  • Posts: 9
  • Joined: 21/02/2012
Oh dear...

Well I didn't have this problem in version 1.9.4 RC1 - maybe I can use the notification code from that version?
JP
  • Posts: 398
  • Joined: 08/01/2009
Thanks for confirming my notion. I started out with 1.9.4 RC1 and it worked well indeed.
The issue has been raised before in the forum, but was then "blamed" on ISP mail provider issues.

Maybe it's time to have a little look at the mail sending routine code to see if it needs an overhaul in logic?
He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Old Chinese Proverb]
Dr-Hack
  • Posts: 160
  • Joined: 31/12/2004
why is it when ever i come to the forum with something new that issue is just discussed already :p

so yes today for the first time i got dual mails of a topic i have watched .. so i guess it might happen with others as well .. :S ..will see the mail time and logs if anything matches


pre67vw
  • Posts: 9
  • Joined: 21/02/2012
It's going up... I just got 6 notification emails... 😠
pre67vw
  • Posts: 9
  • Joined: 21/02/2012
OK, well I think I've fixed my problem. Couldn't go back to 1.9.4RC1 because it looks like a lot of stuff has been re-written since then (Yaf.Core doesn't seem to exist in 1.9.4). So I downloaded the latest version and compared the notification code, changed a couple of lines and re-compiled. Now I'm getting one notification email and it all seems OK.
JP
  • Posts: 398
  • Joined: 08/01/2009
Could you please publish the code changes?

My users are getting tired of getting multiple mails for each message posted in watched topics and such...
He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Old Chinese Proverb]
tha_watcha
  • Posts: 4133
  • Joined: 06/03/2010
Originally Posted by: JP 

Could you please publish the code changes?

My users are getting tired of getting multiple mails for each message posted in watched topics and such...



This issue has been resolved in yaf 1.9.6.1 rtw, it was an issue with the task manager.
UserPostedImage
Thantis
  • Posts: 86
  • Joined: 04/08/2011
Hmmm. I am currently using 1.9.6.1 rtw and I have now started getting 8 to 10 notice emails at a time also. Any help would be appreciated.
squirrel
  • Posts: 925
  • Joined: 14/01/2010
I don't know how the code works, but I noticed on our forums (we're still running a patched RC of 1.9.5) - that if a mail gets stuck in the queue, what happens is if the queue doesn't complete, it keeps resending the messages that are successful -- when we flush out the queue, it runs fine until there's a problem with one of the messages or email addresses it'll get stuck in repeat.

Almost like it won't clear messages out of the queue unless it's able to complete the whole queue. We're going to go to 1.9.6 soon - I just haven't had the time to deal with it on our site yet --

I have noticed also that since we moved the forums to the new server, it's been sending notifications with no problems and no duplicates. Thera are big differences between the two servers: IIS versions, OS Versions, SQL Versions, and the change in mailserver. We don't use a pickup directory - we just talk to the IIS SMTP on an internal port and that's it. We used to talk to our public mailserver instead.

We did also recently go through the database and disable notifications for messages by default and instructed users how to go and turn them back on if they wanted them. The question is does the queue clear messages one by one if they send or does it process the queue as a 'batch' then clear them if the 'batch' is successful?

Just my notes --
If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
daveburke
  • Posts: 148
  • Joined: 28/05/2008
Originally Posted by: squirrel 


I have noticed also that since we moved the forums to the new server, it's been sending notifications with no problems and no duplicates. Thera are big differences between the two servers: IIS versions, OS Versions, SQL Versions, and the change in mailserver. We don't use a pickup directory - we just talk to the IIS SMTP on an internal port and that's it. We used to talk to our public mailserver instead.



Excellent summary, Squirrel. Thanks for sharing. I hadn't considered the local SMTP environment being an issue, but I have been running YAF on my dedicated server since 2008 and haven't had a single occurrence of multiple emails. And that was with YAF 1.9.3 through to 1.9.6.1. I shouldn't be tempting fate by publicly posting this, but I wanted to add my experience to the pool.

Thanks,
Dave
francoz
  • Posts: 56
  • Joined: 10/03/2011
I have faced multiple email problems with the newly installed 1.9.6.1 RTW version (on Windows 2008, SQL 2008 fully updated) which have suddenly disappeared when I have switched from my provider SMTP server (Postfix on Ubuntu) to one of our own servers which is not even in the LAN, but is reached over the Internet (mDaemon 8 on Windows 2003).
One thing I have noticed is that my provider server closes the SMTP connection because of time-out after a brief time (120 seconds), while our own server has got a very long time out setting, 15 minutes.
pre67vw
  • Posts: 9
  • Joined: 21/02/2012
I didn't have the problem a single time when I was on 1.9.4 RC1, now it's becoming a real issue.

It's on the same server with the same SMTP settings, the only thing that's changed is YAF 😞
pre67vw
  • Posts: 9
  • Joined: 21/02/2012
Another issue that I have is that the notifications are in the language of the last poster on the thread. So not only do people get multiple emails, but they can't read them sometimes either...
Users browsing this topic
    Forum Jump  
    • You cannot post new topics in this forum.
    • You cannot reply to topics in this forum.
    • You cannot delete your posts in this forum.
    • You cannot edit your posts in this forum.
    • You cannot create polls in this forum.
    • You cannot vote in polls in this forum.

    About Us

    The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

    Powered by Resharper Donate with PayPal button

    Project Twitter Updates

    Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved