from django.core.mail import send_mail
from django.conf import settings


def django_send_mail():
    print('-------------')
    print(settings.EMAIL_FROM)
    # subject, message, sender, recipients
    send_mail(
        subject='the django send mail api test',
        message='the django send mail detail',
        from_email=settings.EMAIL_FROM,
        recipient_list=['15951606335@163.com'],
    )



if __name__ == '__main__':
    django_send_mail()