Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
807 views
in Q2A Core by
edited by
I have the latest version downloaded and NO emails are sent - registration, questions, comments and the feedback form give a Server Error

Any clues

2 Answers

+1 vote
by
Thanks for your question.

The most likely explanation is that the 'Sender address for all administrative messages' is not set correctly in the 'Emails' panel of the admin center, and so your server is refusing to send the messages 'from' an invalid email address.

If that doesn't fix the problem, it may also be something else to do with your server configuration. Do you have other PHP scripts running that are able to send emails?

In any event, I don't think this is a specific issue with the release.
by
edited by
Hi

Thanks for the reply

I run several scripts all sending emails fine

The email in admin can be any email ? ie gmail etc.. or it must be one hosted my me ?

Thanks
 Gibby
by
I'm not sure - it depends on the rules that may be running on your server, about what is allowed in the 'From' and 'Return-Path' for outgoing emails. I would try something hosted on the domain itself. Also, please post a comment if there are any errors in your web server's log from the Q2A pages.
by
no errors and still no emails :-)

driving me bonkers hahaha
by
OK now I have to ask what should the email be in admin for both of them ?

I have tried every email I have and every combination....nothing works

Thanks

Gibby
by
I just remembered in another script I had to remove

$return_path

for php mail to work

Could you tell me how to do it for your script maybe this will fix it for me :-)
by
If you want to remove the Return-Path header from the outgoing emails, you can comment out the lines 867 to 871 in CreateHeader() in qa-class.phpmailer.php which add the Return-Path header.
by
Sorry to say this did not work

I guess I am just one of the unlucky ones :-(
0 votes
by
For any unsolvable problem with the standard email sending function, you have the option of implementing your own as follows:

1. Rename the qa-external-example directory to qa-external.
2. In qa-config.php, set QA_EXTERNAL_EMAILER to true.
3. Write the qa_send_email() function in qa-external-emailer.php.

For step 3, this can be as simple as using PHP's mail() function, or an email sending library that you know works under your server configuration.
by
Thanks will try in the morning it's nearly 2am here - thanks and good night will let you know in the morning :-)
...