I have a need to send an email on a reoccurring basis so I wrote a scheduled task to do it. We are running into a problem that the FactoryMessage.cs file has a error handle that doesn't allow system accounts to send an email. The scheduled task appears to run under the builtin@background-task-record.com account. Is there a way for a scheduled task to send an email out?
Sending Emails from Schedule Task
Eröffnet von
CompleteCoders
, Oct 16 2020 06:16
1 Antwort zu diesem Thema
#1
Geschrieben: 16 October 2020 - 18:16
#2
Geschrieben: 16 October 2020 - 18:53
Yes, MessageFactory validates MessageContext.Customer but you can use use any customer through MessageContext.Create.
For example here's a message created in context of an order.
Marcus Gesing
Smartstore AG