Django中使用多线程发送邮件
摘要:
1、settings.py 增加Email设置#mailEMAIL_HOST = ‘smtp.gmail.com’ #邮件smtp服务器EMAIL_PORT = ’25′ #端口EMAIL_HOST_USER = ‘code***@gmail.com’ #邮件账户EMAIL_HOST_PASSWORD = ‘*********’ #密码EMAIL_USE_TLS = False2、views.py 发送邮件from django.core.mail import EmailMultiAlternativesfrom django.te... 阅读全文