I am on final testing stage of my webstore and it is going to be launched next month. I am facing this annoying issue.
When I try to register a new account, I receive three emails with activation link and three emails for welcome message (after activation). My admin email-id receives two emails about the new registration notification.
That didn't help. I tried changing my email id from gmail to hotmail server. Still the same.
Customer receives three emails with activation links, three emails with welcome message after activation and the admin email id receives two emails for notifying new customer registration.
check the code in Libraries/Nop.Services/Messages/WorkflowMessageService.cs file. may be mistakenly you copy and paste the lines that add same mail to the email que more time. check in utilities block SendNotification method.
may be the follwing line copied more than once in your method.
_queuedEmailService.InsertQueuedEmail(email);
put the break point and check how many time its sending.
also check QuedMessagesSendTask.cs file in Execute method change the
var maxTries = 3; to 1;
check is there any exception in the try catch block.
check the code in Libraries/Nop.Services/Messages/WorkflowMessageService.cs file. may be mistakenly you copy and paste the lines that add same mail to the email que more time. check in utilities block SendNotification method.
may be the follwing line copied more than once in your method.
_queuedEmailService.InsertQueuedEmail(email);
put the break point and check how many time its sending.
also check QuedMessagesSendTask.cs file in Execute method change the
var maxTries = 3; to 1;
check is there any exception in the try catch block.
Hi,
I am not a developer/programmer.
I use "no source" release and hence there is no way I can change the source code :).
If you have multiple web sites on the same AppPool and receive the same email multiple times than you should make the following change in Global.asax file:
Why does it matter if you have multiple App Pools running on the same database instance? I would think it would be better to run each store in a multi-store in a separate app pool. Anyone have different thoughts?
We saw this issue. A different post someone said they made new app pools and the problem went away. We recently had the multiple email issue occur to us. I also needed to create new app pools and reassign to fix the issue. But, it returned within a day.
Still no resolution. So, trying the global.asax code from this post. It works right now. Need to give it some time to know for sure, though.
Update: adding the above code to the global.asax doesn't solve our issue. Also 5 stores are now running in the same App Pool and issue persists.