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
599 B
Plaintext
19 lines
599 B
Plaintext
Hello, {{ username }}!
|
|
|
|
Thank you for registering with {{ server_name }}. To complete your account verification, please use the following verification code:
|
|
|
|
Verification Code: {{ code }}
|
|
|
|
This code will expire in {{ expiry_minutes }} minutes.
|
|
|
|
Security Notice:
|
|
- Do not share this verification code with anyone
|
|
- If you did not request this code, please ignore this email
|
|
- For your account security, do not use the same password on other websites
|
|
- This code can only be used once
|
|
|
|
---
|
|
© {{ year }} {{ server_name }}. All rights reserved.
|
|
This email was sent automatically, please do not reply.
|
|
|