qa_send_new_confirm() invokes qa_send_notification() from the file qa-include/app/emails.php and returns the error if that function call fails. You need to debug what exactly in the called function goes wrong.
Also, what does the mail setup of that site even look like?