Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
944 views
in Q2A Core by
I installed v1.5 earlier and while it installed ok and runs well, I am however unable to send email. It returns errors when doing so, registered users do not receive the confirm mail, manually trying to confirm errors, as does trying to reset password via the mail for reset.

Question2Answer fatal error:
Could not send email confirmation
Stack trace:

require() /home1/happyhq0/public_html/ask/index.php:31
require() /home1/happyhq0/public_html/ask/qa-include/qa-index.php:163
qa_get_request_content() /home1/happyhq0/public_html/ask/qa-include/qa-page.php:758
require() /home1/happyhq0/public_html/ask/qa-include/qa-page.php:188
qa_send_new_confirm() /home1/happyhq0/public_html/ask/qa-include/qa-page-confirm.php:50

Question2Answer fatal error:
Could not send reset password email
Stack trace:

require() /home1/happyhq0/public_html/ask/index.php:31
require() /home1/happyhq0/public_html/ask/qa-include/qa-index.php:163
qa_get_request_content() /home1/happyhq0/public_html/ask/qa-include/qa-page.php:758
require() /home1/happyhq0/public_html/ask/qa-include/qa-page.php:188
qa_start_reset_user() /home1/happyhq0/public_html/ask/qa-include/qa-page-forgot.php:71

I checked with the hosting service and while they don't tech support 3rd party scripts, they checked the account and found everyhing set up correctly and operating ok, particularly since my other scripts such as Word Press, phpBB, phpform, etc. are all sending email without incident. Viewing the PHP error log, however, lists my Question2Answer fails, for instance:

/home1/happyhq0/public_html/ask/error_log:
[13-Feb-2012 18:28:34] PHP Question2Answer fatal error: Could not send reset password email
[13-Feb-2012 18:52:22] PHP Question2Answer fatal error: Could not send email confirmation
[13-Feb-2012 18:57:00] PHP Question2Answer fatal error: Could not send email confirmation
[13-Feb-2012 19:22:01] PHP Question2Answer fatal error: Could not send email confirmation

Any thoughts on why this is happening and what I can look at to try to correct it?

Thank you for your time.
Q2A version: 1.5

1 Answer

0 votes
by
There doesn't seem to be a solution. The same issue/errors have been posted here and elsewhere. Mail just doesn't seem to work for some installations. Perhaps it's the hosting service or some setting in php.ini or whatever. If you integrate it with Word Press as noted in the installation instructions and the qa-config.php then mail works, because it's being sent via WP; registration, reset password, etc. works via that route but that's a lot of overhead just to get mail out unless you want a WP site and Q2A tied into it.

Nor do I know if 'every' feature that sends mail will work accordingly under that scenario, such as being sent mail when there is an answer to your Question, or as Admin being sent mail every time there is a question posted if you want, etc. I know that registration and reset password worked once I integrated with Word Press since those were functioning through Word Press but I don't care for a blog and such, just a Q&A site.
...