Everything works fine, except for the mails being sent:
Every mail gets in the queue, but they are stuck there forever, the datetime senton is never filled in.
So the customer keeps getting these mails.
If I debug: no exceptions are thrown, even the "queuedEmail.SentOn = DateTime.UtcNow;" is ok, and value is being filled in.
For some reason, the filled in date never reaches the DB.
Is there something wrong with
if (!_context.IsAttached(queuedEmail))
_context.QueuedEmails.Attach(queuedEmail);
_context.SaveChanges();
Or is it a DB-setting.
I'm running the app in medium trust.