# Path: cus_exception.py
# class CusException(Exception):
#     def __init__(self, name, error_msg):
#         super(CusException, self).__init__(name, error_msg)
#         self.name = name
# 
#         if type(error_msg) == CusException:
#             self.error_msg = error_msg.error_msg
#         else:
#             self.error_msg = error_msg
# 
#         self.error_time = str(datetime.datetime.now())


import smtplib
import logging
import config
from cus_exception import CusException
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
#-*- coding: utf-8 -*-




def send_email(to_email, subject, body):
    try:
        logging.debug('send_email start...')

        msg = MIMEMultipart()

# Path: cus_exception.py
# class CusException(Exception):
#     def __init__(self, name, error_msg):
#         super(CusException, self).__init__(name, error_msg)
#         self.name = name
# 
#         if type(error_msg) == CusException:
#             self.error_msg = error_msg.error_msg
#         else:
#             self.error_msg = error_msg
# 
#         self.error_time = str(datetime.datetime.now())


# Path: jd/send_email.py
import smtplib
import logging
import config
from cus_exception import CusException
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart

#-*- coding: utf-8 -*-




def send_email(to_email, subject, body):
    try:
        logging.debug('send_email start...')

        msg = MIMEMultipart()

        msg['From'] = config.self_email