I am unable to get emails to send using Gmail's SMTP. I am also unable to debug. I've implemented the error logging mentioned here: http://meta.osqa.net/questions/6048/email-sending-has-stopped-working-how-to-debug

And there are no error's being logged.

My email settings are as follows:

Email Server: smtp.gmail.com
Email Port: 587
Email User: no-reply@answers.md
Email Password: ***
Use TLS: Check
Site 'from' email address: no-reply@answers.md

Does anyone have a solution, or know how I can better debug? It seems that OSQA is working correctly, but its getting lost afterwards...

asked 26 Feb '11, 16:14

chrmaury's gravatar image

chrmaury
1112
accept rate: 0%

edited 26 Feb '11, 16:47

Update: I switched to using a different SMTP server sendgrid.com with these settings:

Email Server: smtp.sendgrid.net Email Port: 587 Email User: no-reply@answers.md Email Password: *** Use TLS: Check Site 'from' email address: no-reply@answers.md

This is following their specifications, and still no mail sent. They do not indicate receiving a request.

Looking through /forum/utils/mail.py its pulling in

local_hostname=DNS_NAME

Are my DNS settings going to affect the sending of mail?

(26 Feb '11, 22:35) chrmaury

the Email User: field needs to be your gmail address (e.g. joeschmoe@gmail.com), and the password is the password for that gmail account.

link

answered 27 Feb '11, 18:18

krst's gravatar image

krst
33085
accept rate: 33%

this is a test comment

(10 Feb, 12:53) Johny

I am having the same problem with the version I downloaded from bitnami:

Have you checked the osqa/log/django.osqa.log file?

Mine says:

/opt/bitnami/apps/osqa/forum/utils/mail.py TIME: 2012-02-08 11:34:30,986 MSG: mail.py:create_and_send_mail_messages:82 Couldn't send mail using the sendmail method: (530, '5.5.1 Authentication Required. Learn more atn5.5.1 http://support.google.com/mail/bin/answer.py?answer=14257 y6sm907812wix.10', u'My_site <>')

And the URL it points to is a page saying:

"My client isn't accepting my username and password"

And it has instructions there on how to login to gmail, but none that I have found to be useful.

Could it be Django's smtp.sendmail() failing? I've read that people recommend using EmailMessage instead of sendmail for gmail smtp:

from django.core.mail import EmailMessage

So, ya. While not exactly and answer, I hope this helps shed light on the problem.

link

answered 09 Feb, 07:03

SnakeJAyd's gravatar image

SnakeJAyd
111
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×41
×10
×10
×8
×2

Asked: 26 Feb '11, 16:14

Seen: 918 times

Last updated: 20 Feb, 09:34

powered by OSQA