Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
–1 vote
in Plugins by

In one of my plugins I am using qa_send_notification() but need to specify another sender (it is the same domain but another prefix, e.g. special@myq2adomain.com)

I actually need to change only one line:

            return qa_send_email(array(
                'fromemail' => qa_opt('from_email'), // should be my custom sender email
                'fromname' => qa_opt('site_title'),

Now I thought of using function overrides. To change qa_opt('from_email') and set it back after the call of the original function. However, messing around with a database option seems not the right way.

Does anyone else have an idea how to solve this?

Please log in or register to answer this question.