I have a weird bug - it's driving me a bit crazy!
If I configure the 'Email settings' page as follows, OSQA sends emails just fine.
Email Server: smtp.gmail.com Email Port: 587 Email User: email@example.com Email Password: mypassword Use TLS: [checked]
However, if I substitute in a different address -
firstname.lastname@example.org and its password - no emails are sent. There is no error message in OSQA, emails just don't arrive.
I am CERTAIN this address and password are OK, I can log into Gmail with them. I have checked and POP is enabled for the address.
Does anyone have any ideas why OSQA is objecting to this address? If not, does anyone know how I can start to debug the problem?
UPDATE -- I can connect to another mail client (specifically, OSX's inbuilt Mail) and send emails just fine from there with the okfn.wdmmg login credentials.
So it seems like it's just OSQA and this particular Google login that's the problem...
Answer by rick , Husband, father, coffee addict, dork · Sep 08, 2010 at 09:17 AM
This is not an OSQA issue, but rather something about what Gmail allows and doesn't allow. Gmail is very particular about SMTP sender authentication. If you want to choose an arbitrary email address for the sender, then you will need to find another SMTP host besides Gmail.
Answer by velmani · Apr 08, 2014 at 04:08 AM
hi I am also having same kind of problem.SMTP work for one domain(gmail.com) and not working for another domain(live.com).I tried all way i could.But i am unable to succeed on it.If anyone had the same problem please let me know how to configure it successfully.Waiting for response.Thanks in advance.
the ERRROR is
/bitnami/apps/osqa/forum/utils/mail.py TIME: 2014-04-08 04:13:32,344 MSG: mail.py:create_and_send_mail_messages:122 Email sending has failed: Connection unexpectedly closed: [Errno 1] _ssl.c:1363: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
Answer by ap257 · Sep 08, 2010 at 01:22 PM
I've noticed that if I enter an invalid password in Email settings, OSQA doesn't throw an email when I try to send a validation email. It says 'A message... was sent to your address'.
Would it be better if this waited for a receipt, and displayed a failure message if the server rejects the SMTP information?
Also, please could you tell me where the failure messages do get logged, so I can try to work out what's going on?