We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21cc2bc commit 7876a9cCopy full SHA for 7876a9c
virtual_labs/infrastructure/email/send_welcome_email.py
@@ -15,7 +15,8 @@ async def send_welcome_email(recipient: str) -> str:
15
)
16
fm = FastMail(email_config)
17
await fm.send_message(message, template_name="welcome.html")
18
+ logger.info(f"A welcome email has been sent to {recipient}")
19
return f"email sent successfully to {recipient}"
20
except Exception:
- logger.info(f"Unable to send a welcome email to {recipient}!")
21
+ logger.warning(f"Unable to send a welcome email to {recipient}!")
22
return f"email has not been sent to {recipient}"
0 commit comments