Skip to Content
0
Jun 04, 2020 at 02:31 PM

[1905] - Custom Email Event

49 Views

Hello,

Is it possible to create an EmailEvent that send emails when someone is not logged in ?
The scenario is as follows:
1) The storefront have a contactUs page in which resides a form anyone can fill with name, email, about and mobile number.

2) An email should be generated when said form is submitted from the storefront to another email address (not the one in the form)

When creating my emailEvent I tried extending a couple of OOTB Events suchs as AbstractEvent and AbstractCommerceUserEvent both of which complains that my customerModel is null.
My question is: Is it possible to achieve what I am trying or perhaps it should be done in another way?

Attachments

log.jpg (312.9 kB)
form.jpg (17.4 kB)