Skip to content

Commit 5f38fff

Browse files
committed
发送邮件注意点
1 parent e79d081 commit 5f38fff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/utils/email_send.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def send_register_email(email, send_type='register'):
2020

2121
if send_type == 'register':
2222
email_title = '慕雪在线网注册激活链接'
23+
# http://118.89.105.65 是我自己的服务器 IP 地址,你部署的时候,请换成你自己的 IP 或 域名
2324
email_body = '请点击下面的链接(如果是线上环境,请把 http://127.0.0.1:8000 替换成 http://118.89.105.65 )激活你的账号:http://127.0.0.1:8000/active/{0}'.format(code)
2425
send_status = send_mail(email_title, email_body, EMAIL_FROM, [email])
2526
if send_status:

0 commit comments

Comments
 (0)