관리-도구
편집 파일: mailer.cpython-311.pyc
� b��f> � � � d dl Z d dlZd dlZd dlZd dlmZmZ d dlmZ d dl m Z d dlmZ d dl mZ ddlmZmZ dd lmZ G d � d� � ZdS )� N)�ConfigParser�SectionProxy)�EmailMessage)�gethostname)�Optional)�gettext� )�mail_template_location�mail_scripts_location)�XRayMailerErrorc � � e Zd ZdZd� Zedefd�� � Zedefd�� � Z defd�Z dee fd�Zdee fd�Z edd edefd�� � Zdedd fd�Zdedd fd�Zdedd fd�Z ddededd fd�Zd S )�Mailerz0 Class contains X-Ray e-mail send logic c �F � t j d� � | _ d | _ d S )N�mailer)�logging� getLogger�logger�_sender��selfs �M/opt/cloudlinux/venv/lib64/python3.11/site-packages/xray/continuous/mailer.py�__init__zMailer.__init__ s � ��'��1�1�������� �returnc � � dS )z+ Local mail server address )� localhost� r s r �mail_serverzMailer.mail_server s � � �r c �P � | j �| � � � | _ | j S )zG Retrieve 'From' mail address if it is not already set )r �retrieve_mail_senderr s r �senderz Mailer.sender% s'