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?
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?