Add MailerSend and template-based email verification

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.
This commit is contained in:
咕谷酱
2025-10-12 00:36:47 +08:00
parent a32976857f
commit 6731373ded
15 changed files with 886 additions and 163 deletions

View File

@@ -16,7 +16,9 @@ dependencies = [
"fastapi>=0.104.1",
"fastapi-limiter>=0.1.6",
"httpx>=0.28.1",
"jinja2>=3.1.0",
"loguru>=0.7.3",
"mailersend>=2.0.0",
"maxminddb>=2.8.2",
"newrelic>=10.1.0",
"osupyparser>=1.0.7",