mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 13:22:12 +00:00
Add log line when sending a task-related email
This commit is contained in:
@@ -44,7 +44,7 @@ async def send_welcome_email(name, email):
|
||||
{
|
||||
"from": "team@khoj.dev",
|
||||
"to": email,
|
||||
"subject": f"Welcome to Khoj, {name}!" if name else "Welcome to Khoj!",
|
||||
"subject": f"{name}, four ways to use Khoj!" if name else "Four ways to use Khoj!",
|
||||
"html": html_content,
|
||||
}
|
||||
)
|
||||
@@ -55,6 +55,8 @@ def send_task_email(name, email, query, result, subject):
|
||||
logger.debug("Email sending disabled")
|
||||
return
|
||||
|
||||
logger.info(f"Sending email to {email} for task {subject}")
|
||||
|
||||
template = env.get_template("task.html")
|
||||
|
||||
html_result = markdown_it.MarkdownIt().render(result)
|
||||
|
||||
Reference in New Issue
Block a user