YAFLogo

pre67vw
  • pre67vw
  • 64.4% (Friendly)
  • YAF Camper Topic Starter
12 years ago
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
  • JP
  • 100% (Exalted)
  • YAF Leader
12 years ago
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
  • pre67vw
  • 64.4% (Friendly)
  • YAF Camper Topic Starter
12 years ago
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
  • JP
  • 100% (Exalted)
  • YAF Leader
12 years ago
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
  • Dr-Hack
  • 100% (Exalted)
  • YAF All-the-Time
12 years ago
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
  • pre67vw
  • 64.4% (Friendly)
  • YAF Camper Topic Starter
12 years ago
It's going up... I just got 6 notification emails... 😠
pre67vw
  • pre67vw
  • 64.4% (Friendly)
  • YAF Camper Topic Starter
12 years ago
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
  • JP
  • 100% (Exalted)
  • YAF Leader
12 years ago
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
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago

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...

Originally Posted by: JP 

This issue has been resolved in yaf 1.9.6.1 rtw, it was an issue with the task manager.

pre67vw
  • pre67vw
  • 64.4% (Friendly)
  • YAF Camper Topic Starter
12 years ago

This issue has been resolved in yaf 1.9.6.1 rtw, it was an issue with the task manager.

Originally Posted by: tha_watcha 

Any chance you can be more specific? I'm on v1.9.5.5 and my hosting platform doesn't support .net v4

Thanks.

Thantis
  • Thantis
  • 81.8% (Honored)
  • YAF Commander
12 years ago
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
12 years ago
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
12 years ago

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.

Originally Posted by: squirrel 

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
  • francoz
  • 82.4% (Honored)
  • YAF Lover
12 years ago
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
  • pre67vw
  • 64.4% (Friendly)
  • YAF Camper Topic Starter
12 years ago
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 😞