How to send email via Django?
来源:互联网 发布:软件升级方案 编辑:程序博客网 时间:2024/06/12 01:02
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'# Host for sending e-mail.EMAIL_HOST = 'localhost'# Port for sending e-mail.EMAIL_PORT = 1025# Optional SMTP authentication information for EMAIL_HOST.EMAIL_HOST_USER = ''EMAIL_HOST_PASSWORD = ''EMAIL_USE_TLS = False
my email:
from django.core.mail import EmailMessageemail = EmailMessage('Hello', 'World', to=['user@gmail.com'])email.send()
of course, if I setup a debugging server via python -m smtpd -n -c DebuggingServer localhost:1025
, I can see the email in my terminal.
1 0
- How to send email via Django?
- How to send email via vbs using cdo
- how to send email
- android: how to send email
- How to send Email asynchronously
- how to send email by jmail?
- How to send email using sqlserver
- How do I authenticate to send an email
- 创造应用英语环境学英语-how to send email
- Salesforce: How to Send Email with Default Template?
- Enable PO approval process to send PO in PDF format via email
- cakephp send email via html format
- How to test if the server is configured well to send email to external accoun
- prjSendMailInUniversity - How to send email using VB & Winsock - 邮件发送接收程序 - VB6 + Winsock
- Custom checkout cart – How to send email after successful checkout
- How to send an email from oracle workflow process using an AdHocRole?
- iOS Programming 101: How To Send Email in Your iPhone App
- How to make NAnt send an email using a real account
- C# 操作 Excel 如何设置格式
- Spring MVC类图以及UML关系图
- iOS网络编程
- Android中的so注入(inject)和挂钩(hook) - For both x86 and arm
- linux命令学习之ls
- How to send email via Django?
- The currently displayed page contains invalid values解决方案
- UIPanGestureRecognizer学习笔记
- ICG技术专栏---互联网双出口的选择
- 有相同数字?
- ecmall 时间推后8小时问题解决
- 清空回收站之后正确的恢复办法
- ScriptManager之EnablePageMethods属性
- 判断两个有序数组中是否有相同的数字