Skip to content

Commit

Permalink
add more mails
Browse files Browse the repository at this point in the history
  • Loading branch information
ptsfdtz committed Sep 21, 2024
1 parent d768ec6 commit 13337c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/smtp_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ def get_smtp_settings(email_address):
return'smtp-mail.outlook.com', 587
elif domain == 'foxmail.com':
return'smtp.foxmail.com', 465
elif domain == '126.com':
return'smtp.126.com', 25
else:
raise ValueError(f"不支持的电子邮件域名: {domain}")

0 comments on commit 13337c4

Please sign in to comment.