Have a look at qa_send_email($params) and qa-include/pages/feedback.php
qa_send_email($params) and
In case anyone looks at this for an answer, the function qa_send_email is fine, but I finished up writing a method of my own to send specifically to admins and super admins:
private function alertAdmins ($message) { require_once QA_INCLUDE_DIR . 'app/emails.php'; $spec = array( 'columns' => array('email','handle'), 'source' => "^users WHERE level >= #", 'arguments' => array(QA_USER_LEVEL_ADMIN), ); $admins = qa_db_single_select($spec); if ($admins) { foreach ($admins as $admin) { $edata = array( 'fromemail' => $admin['email'], 'fromname' => $admin['handle'], 'toemail' => $admin['email'], 'toname' => $admin['handle'], 'subject' => qa_lang_html('hubuco_email_filter/admin_error_subject'), 'body' => $message, 'html' => false ); qa_send_email($edata); } } }
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.