mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 23:37:39 -02:30
Adding some early Notifications stubs
* A basic NotificationTemplate model class with early notification type definitions * Initial implementations of the Email, Slack, and Twilio Notification backends using the Django email backend system * Some dependencies thereof
This commit is contained in:
11
awx/main/notifications/email_backend.py
Normal file
11
awx/main/notifications/email_backend.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# Copyright (c) 2016 Ansible, Inc.
|
||||
# All Rights Reserved.
|
||||
|
||||
import logging
|
||||
|
||||
from django.core.mail.backends.smtp import EmailBackend
|
||||
|
||||
class CustomEmailBackend(EmailBackend):
|
||||
|
||||
init_parameters = ("host", "port", "username", "password",
|
||||
"use_tls", "use_ssl")
|
||||
Reference in New Issue
Block a user