Yes, apologies for the duplicate – I wasn’t getting a reply and then realised it made more sense posting here.
I have made small progress but I keep getting an internal server error trying to use the &$abort reference to set to false to stop the original email sending.