litestar-email
Installation
SKILL.md
litestar-email
litestar-email 0.4.0 provides one async sending interface for console, memory,
SMTP, Resend, SendGrid, Mailgun, Amazon SES, and custom backends. Match the
backend already selected by the project; keep message construction independent
from the transport.
Code Style Rules
- Use
NamedDependency[EmailService]withProvide(email_config.provide_service().__aiter__)(orFromDishka[EmailService]when the project uses Dishka) for directEmailServicehandler injection. - Pass recipient collections as
list[str].to,cc,bcc, andreply_toare list fields. - Pass attachment content as
bytes. Do file I/O before constructing the message and keep that I/O async. - Await
send_message()andsend_messages(). Both return the count sent. - Keep API keys and SMTP credentials in the project's settings layer.