Welcome Guest, Not a member yet? Register   Sign In
Extend/Override CI Email Functions
#1

[eluser]Unknown[/eluser]
I need to somehow modify EE so that I can check for certain email address in emails being sent and swap them out for an alternate address. As I have looked into this it seems that I need to go below EE to CI and make my adjustments there so that they have more of a chance to be universal to EE and any add-on that might be installed. I realize that this is still not fool-proof as an Add-On may not use the underlying CI email function but it seems to be my best option to address my needs.

My question is: What is the best and least obtrusive method for extending and overriding a core CI library method.

The clean_email function of the email library seems like a prime candidate for what I want to do. Is there a way to override this function without hacking too much?




Theme © iAndrew 2016 - Forum software by © MyBB