Avoid email log
My app send 2 kind of email
automatic (for example when an item is created) or manual, from admin to user
i have setup a listener that fires when i send an email (any kind of email)
then i have a function that create a log
the second parameters of createRepairLog can be 1 or 0
for example
when a repair is created, 2 email are sent
1 at customer (1)
and
1 at assignee technician (0)
how can i differentiate this two emails to create the proper log?
3 Replies
I think the $event can hold the email class name that been used?!!
dd the $event and see what data you have
uhm, i use the same email class for all the message...
there is no class reference in $event
ok, solved by using 2 template