a.m. wrote:If you run nopCommerce 1.90 under medium trust, please follow the next steps in order fix the issue when customers keep receiving mails:
1. Open \Libraries\Nop.BusinessLogic\Messages\MessageService.cs file
2. Find UpdateQueuedEmail method
3. Replace
if (!_context.IsAttached(queuedEmail))
_context.QueuedEmails.Attach(queuedEmail);
with
if (!_context.IsAttached(queuedEmail))
_context.QueuedEmails.Attach(queuedEmail);
_context.ObjectStateManager.ChangeObjectState(queuedEmail, System.Data.EntityState.Modified);
4. Recompile the solution
...or simply redownload the latest version
here (the version is still 1.90)
Following instructions from my hostcompany winhost I changed my web.config.file and inserted :
<trust level="Full">
It did not work so I removed the line from my code.
Then I registered a new customer and the SentTries (in QueuedEmail) stayed in 0.
Now another problem the field SentTries value keep showing 0 so I guess it is not trying to send emails to register users.
Please help. I have been having this problem for couple of weeks and I do not know what to do.
I am using 2.3 version with a basic winhost hosting.
Sergio