mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
373 B
15 lines
373 B
from common.tasks import send_mail_async
|
|
from .base import BackendBase
|
|
|
|
|
|
class Email(BackendBase):
|
|
account_field = 'email'
|
|
is_enable_field_in_settings = 'EMAIL_HOST_USER'
|
|
|
|
def send_msg(self, users, message, subject):
|
|
accounts, __, __ = self.get_accounts(users)
|
|
send_mail_async(subject, message, accounts, html_message=message)
|
|
|
|
|
|
backend = Email
|