Timeline for "Area code is not set" when trying to send emails
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 9 at 13:03 | comment | added | user103251 | I noticed the error is caused by the following line: $transport = $this->transportBuilder->getTransport(); Before that line, the area code is defined, but after it, is not defined anymore. | |
Jan 9 at 11:55 | comment | added | Dhiren Vasoya | storeScope need to use get current store information like id. | |
Jan 9 at 10:06 | comment | added | user103251 | Yes, I can confirm that. Also, the email template is associated with the frontend area. I see you're mentioning @storeScope, but you never use it. | |
Jan 9 at 9:57 | comment | added | Dhiren Vasoya | confirm this call from frontend of magento, and also store data is pass properly. | |
Jan 9 at 9:54 | comment | added | user103251 | I tried this, but it's not working. Same exception. My example contains static data for area, store, etc., but I also tried with dynamic data as you suggested which is not working. | |
Jan 9 at 9:27 | history | answered | Dhiren Vasoya | CC BY-SA 4.0 |