Files
zulip/zerver/lib/mandrill_client.py
acrefoot f8662c16f7 Add Mandrill decorators, credentials, actions
You can queue email for future delivery or send immediately via mandrill now

(imported from commit e6b6d11a2d94fcdeaffab80793e7ba31955b9031)
2013-10-10 19:32:21 -04:00

13 lines
254 B
Python

import mandrill
from django.conf import settings
MAIL_CLIENT = None
def get_mandrill_client():
global MAIL_CLIENT
if MAIL_CLIENT:
return MAIL_CLIENT
MAIL_CLIENT = mandrill.Mandrill(settings.MANDRILL_API_KEY)
return MAIL_CLIENT