graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #04847
[Question #249019]: Can't Email Graphs with Graphite
New question #249019 on Graphite:
https://answers.launchpad.net/graphite/+question/249019
I'm unable to email rendered graphs using Graphite. My settings in local_settings.py are:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'localhost'
EMAIL_PORT = 25
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
I have been able to SMTP email via telnet and through pyhton manage.py shell using:
from django.core.mail import EmailMessage, get_connection
get_connection()
>>> django.core.mail.backends.smtp.EmailBackend object at 0x1bb6310
email = EmailMessage('Hello', 'This is a test', 'user@xxxxxxxxxxx',['user@xxxxxxxxxxx'])
email.send(fail_silently=False)
>>> 1
When I try to send a graph from the graphite dashboard, after I fill out the "from", "to", "subject" and "message" fields, I get a message box with a progress bar that says "Please Wait...Processing Request" which disappears in less than a second. No graph is ever sent.
I am using Graphite 0.9.12 on CentOS 6.5. I downloaded the Graphite RPM along with its dependencies from EPEL. Everything else with Graphite is working fine. I'm even using Seyren to supplement it, and I'm having no problems sending emails from Seyren. But I can't get Graphite to email the rendered graphs.
I've also tried using a gmail account:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'me@xxxxxxxxx'
EMAIL_HOST_PASSWORD = 'password'
EMAIL_USE_TLS = True
And that doesn't work either.
I've also tried different Django backends.
After checking my web console, I found the error being thrown by Graphite's e-mail feature:
"POST /dashboard/email HTTP/1.1" 500 5068
But, other POST commands succeed:
"POST /metrics/find/ HTTP/1.1" 200 186
"POST /dashboard/find/ HTTP/1.1" 200 87
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.