Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

How do I configure mail?

+6 votes
asked Mar 29, 2010 in Q2A Core by anonymous
edited Mar 29, 2010
What changes do I have to do to use a SMTP with auth.? Ican´t get feedback to mail??
commented Oct 21 by Answer
Check your smtp email setup . Like ssl or non ssl
commented Oct 21 by Answer
Please attach error screenshot
commented Oct 23 by Carol Disouza
Please check the setup of your SMTP.

3 Answers

0 votes
answered Mar 29, 2010 by ProThoughts
set your mail id in Admin-> Emails and you should be able to get mails from feedback form.
commented Mar 29, 2010 by anonymous
edited Mar 29, 2010 by gidgreen
I Did set my Id. But I need to set up hte form to work with SMTP only.
Error rcived is: A server error occurred

Thank´s in advance

How do I setup SMTP to work with feedback form??
+5 votes
answered Mar 30, 2010 by gidgreen
edited Mar 30, 2010 by gidgreen
Do you mean you want the connection to be made directly to an SMTP server, instead of sending via the mail command on the server?

If so I'm afraid there's not yet an easy way to do this via the admin interface. You can do this yourself with the following steps:

1. Set QA_EXTERNAL_EMAILER to true in qa-config.php.

2. Rename the qa-external-example directory to qa-external.

3. In qa-external/qa-external-emailer.php, modify the qa_send_email() function to match that in qa-include/qa-util-emailer.php.

4. Look at the parameters at the top of qa-include/qa-class.phpmailer.php to see what you need to provide SMTP sending (including $Mailer and a whole group of SMTP parameters).

5. Modify your qa_send_email() function in qa-external/qa-external-emailer.php to set the necessary parameters, based on what you saw in the previous step.

Note that you *could* also just modify the email sending function in qa-include/qa-util-emailer.php, but this means you'd lose your changes if you upgraded to a newer version of Question2Answer. This way your changes will be compatible with future versions.
0 votes
answered Oct 18 by mshah
If you want to use an external source to send an email, you can create a plugin and override existing email function,

e.g.: https://github.com/PublicityPort/q2a-mailgun-integration/blob/master/qa-mailgun-integration.php