48 lines
1.1 KiB
Python
48 lines
1.1 KiB
Python
import os
|
|
from app.utils.emailer import send_email
|
|
|
|
_FRONTEND_URL = os.getenv("FRONTEND_URL", "https://aicpa.duckdns.org")
|
|
|
|
|
|
async def send_signup_welcome_email(to: str, name: str | None = None):
|
|
display_name = name or "Valued Customer"
|
|
|
|
body = f"""
|
|
<p>Dear {display_name},</p>
|
|
|
|
<p>
|
|
Welcome to <strong>BookKeepro</strong> 🎉
|
|
</p>
|
|
|
|
<p>
|
|
Your account has been successfully created.
|
|
We're excited to support you with your compliance and bookkeeping needs.
|
|
</p>
|
|
|
|
<p>
|
|
You can log in to your dashboard using the link below:
|
|
</p>
|
|
|
|
<p>
|
|
<a href="{_FRONTEND_URL}/login"
|
|
style="color:#0077c8;font-weight:600;text-decoration:none;">
|
|
👉 Login to BookKeepro
|
|
</a>
|
|
</p>
|
|
|
|
<p style="margin-top:20px;">
|
|
If you did not create this account, please contact our support team immediately.
|
|
</p>
|
|
|
|
<p style="margin-top:20px;">
|
|
Kind regards,<br>
|
|
<strong>BookKeepro Team</strong>
|
|
</p>
|
|
"""
|
|
|
|
await send_email(
|
|
to=to,
|
|
subject="Welcome to BookKeepro 🎉",
|
|
body=body
|
|
)
|