When adding new subscription backend it seems that the New subscription email is sent regardsless of if it's active or not. Is there any way to setting the emails to send only when the subscription is set to active and saved? I am prepared to change code and risk overriding. I've looked through the code but I can't find the place where the email is triggered.
I'd like to set the new subscription email to function as following:
If new subscription is created and saved as published value 2 (not active) do not send any new subscription email.
If new subscription is created/or modified and saved as published value 1 (active) send new subscription email.
Any ideas of where to look in the code would be appreciated.