Introduced support for MailerSend as an email provider alongside SMTP, with configuration options in settings. Added Jinja2-based multi-language email templates for verification emails, and refactored the email sending logic to use these templates and support language selection based on user country code. Updated related services and API endpoints to pass country code and handle new response formats. Added dependencies for Jinja2 and MailerSend.
19 lines
525 B
Plaintext
19 lines
525 B
Plaintext
你好,{{ username }}!
|
||
|
||
感谢你注册 {{ server_name }}。为了完成账户验证,请使用以下验证码:
|
||
|
||
验证码:{{ code }}
|
||
|
||
验证码将在 {{ expiry_minutes }} 分钟内有效。
|
||
|
||
安全提示:
|
||
- 请不要与任何人分享此验证码
|
||
- 如果您没有请求此验证码,请忽略这封邮件
|
||
- 为了账户安全,请勿在其他网站使用相同的密码
|
||
- 验证码仅能使用一次
|
||
|
||
---
|
||
© {{ year }} {{ server_name }}. 保留所有权利。
|
||
此邮件由系统自动发送,请勿回复。
|
||
|