Sent log
This commit is contained in:
parent
7a477876e0
commit
073e26fef0
@ -28,6 +28,7 @@ async def send_confirmation(user: str, email: str):
|
|||||||
msg=f'From: {configGet("sender", "mailer", "smtp")}\nSubject: Email confirmation\n\n'+configGet("message", "mailer", "messages", "registration_confirmation").format(configGet("external_address")+f"/users/{user}/confirm?code={confirmation_code}")
|
msg=f'From: {configGet("sender", "mailer", "smtp")}\nSubject: Email confirmation\n\n'+configGet("message", "mailer", "messages", "registration_confirmation").format(configGet("external_address")+f"/users/{user}/confirm?code={confirmation_code}")
|
||||||
)
|
)
|
||||||
col_emails.insert_one( {"user": user, "email": email, "used": False, "code": confirmation_code} )
|
col_emails.insert_one( {"user": user, "email": email, "used": False, "code": confirmation_code} )
|
||||||
|
logWrite(f"Sent confirmation email to '{email}' with code {confirmation_code}")
|
||||||
except Exception as exp:
|
except Exception as exp:
|
||||||
logWrite(f"Could not send confirmation email to '{email}' due to: {exp}")
|
logWrite(f"Could not send confirmation email to '{email}' due to: {exp}")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user