NopCommerce 不会将消息标记为消息队列中已发送的消息,并继续充斥着电子邮件
我刚刚安装了 nopcommerce 1.9,现在正在配置它。
输入 SMTP 的所有正确设置(主机、端口等),测试电子邮件可以正常到达我测试的任何地址。
但是,如果我填写联系表格或注册新用户,商店将无法停止一遍又一遍地向默认商店电子邮件地址或用户的电子邮件地址发送相同的消息。不断向注册者发送欢迎来到商店的电子邮件或联系表单的消息正文等。要停止它,我必须转到消息队列并手动从那里删除消息,这些消息是标记为未发送!尽管他们显然已经被发出过很多次了。
因此,即使消息第一次发出得很好,它也会不停地重新发送商店发送的所有内容。
有人知道为什么这样做吗?已确认我的网络主机提供商的 smtp 设置正确,邮件错误日志中没有任何有价值的内容。
谢谢...
I have just installed nopcommerce 1.9 and now configuring it.
Inputed all the correct settings for the SMTP (Host, port etc.) and the test E-mail arrives fine to any address I tested it with.
However should I fill in the contact form or have a new user sign-up the store can't stop sending the same message over and over again to the default store E-mail address or to that of the user. Keeps sending the welcome to the store E-mail for those that signed up or the message body of the contact form etc. To stop it I have to go to message queues and delete the message(s) from there manually, these messages are are flagged as unsent! Even though they have been sent out many times obviously.
So it re-sends everything being sent by the store non stop even though the message went out fine the first time.
Anyone know why it's doing this? Have confirmed I have correct settings for the smtp with my webhost provider, nothing in mail error log of worth.
Thanks...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您在中等信任度下运行 nopCommerce 1.90,请按照以下步骤操作,以便解决客户不断收到邮件时的问题:
if (!_context.IsAttached(queuedEmail))
_context.QueuedEmails.Attach(queuedEmail);
和
if (!_context.IsAttached(queuedEmail))
_context.QueuedEmails.Attach(queuedEmail);
_context.ObjectStateManager.ChangeObjectState(queuedEmail, System.Data.EntityState.Modified);
...或者直接在此处重新下载最新版本(版本仍然是1.90)
If you run nopCommerce 1.90 under medium trust, please follow the next steps in order fix the issue when customers keep receiving mails:
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);
...or simply redownload the latest version here (the version is still 1.90)