Duplicate Emails on Forum Subscriptions

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/25/2012 6:21:33 PM
Gravatar
Total Posts 9

Duplicate Emails on Forum Subscriptions

Hello!

I have a problem where one user on our site is receiving duplicate emails from the forum notifications.  I can see in our mail server logs the duplicate emails are getting received from the mojoportal site bit the duplication is totally random.  Some forum notifications will get duplicated and others will not.

She's not registered for a forum twice and there are no other accounts that share the same email address.  I've sent her a test email from the site and it wasn't duplicated.  

The strange thing is that is seems to only be this user that is having an issue.

Any help would be great

Thanks! 

5/28/2012 12:11:08 PM
Gravatar
Total Posts 18439

Re: Duplicate Emails on Forum Subscriptions

Hi,

I cannot consider this a bug unless steps are available to reproduce the problem. I'm certainly not seeing this problem on my site and it sends a lot of forum emails.

It is quite possible that she has 2 different email addresses and one of them forwards some messages to the other one making it seem like duplicates are being sent when they are not.

Hope that helps,

Joe

5/28/2012 1:09:33 PM
Gravatar
Total Posts 9

Re: Duplicate Emails on Forum Subscriptions

Yeah that's the strange thing.  I'm seeing in the exchange logs the duplicate emails coming from the site itself.  There doesn't seem to be any forwarding happening. 

Defiantly a head scratcher

 

Thanks for the reply

5/30/2012 6:50:37 PM
Gravatar
Total Posts 9

Re: Duplicate Emails on Forum Subscriptions

Probably not posting this in the right forum but I think i may have found the reason it has been sending the user duplicates.  

Found this in the site's System Log

2012-05-30 16:19:11,846 ERROR (null) - (null) - (null) - mojoPortal.Net.Email - error sending email to user@blah.com from "website" <websitemailer@web.com>, will retry
2012-05-30 16:19:12,034 INFO (null) - (null) - (null) - mojoPortal.Net.Email - success on retry 1 sending email to user@blah.com from "website" <websitemailer@web.com>

Looks like the site says that the email failed and then sends another one and gets a success.  However, the failed email didn't fail and actually does get sent out.  

Any ideas on why it might think it failed on the first attempt?

5/31/2012 1:29:16 AM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: Duplicate Emails on Forum Subscriptions

I've seen this problem too, if that's any help. I'll check the logs for the same pattern.

5/31/2012 8:41:26 AM
Gravatar
Total Posts 18439

Re: Duplicate Emails on Forum Subscriptions

"2012-05-30 16:19:11,846 ERROR (null) - (null) - (null) - mojoPortal.Net.Email - error sending email to user@blah.com from "website" <websitemailer@web.com>, will retry"

Is that the full error message? Is there any detail or stack trace?

5/31/2012 12:07:45 PM
Gravatar
Total Posts 9

Re: Duplicate Emails on Forum Subscriptions

The only thing before the error is 

2012-05-30 16:17:43,134 INFO (null) - (null) - (null) - mojoPortal.Business.WebHelpers.IndexWriterTask - Queued IndexWriterTask on a new thread
2012-05-30 16:18:35,402 INFO (null) - (null) - (null) - mojoPortal.Business.WebHelpers.IndexWriterTask - started IndexWriterTask task
2012-05-30 16:18:43,244 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - started WebTaskManager task

 

And nothing afterwards.  

Nothing seems to appear in the event viewer around this time tho so I can't get much deeper than just the messages.  Also doesn't seem to be any errors in the exchange server logs

 

5/31/2012 12:23:04 PM
Gravatar
Total Posts 18439

Re: Duplicate Emails on Forum Subscriptions

If it is actually resending the message it should also log something about success on retry x where x is the number of times it retried to send the message.

You can also disable the retry mechanism by adding this to user.config:

<add key="TimesToRetryOnSmtpError" value="0" />

I've just now updated the code so it will log the error detail on smtp errors in the next release. Nothing will show up in Event Viewer because that only shows unhandled exceptions, this exception is a handled exception ie its in a try catch and the catch has retry logic.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.