Zum Hauptinhalt springen

Email Integration

Email configuration for notifications, invitations, and transactional messages.

Email Providersโ€‹

ProviderConfiguration
SMTPStandard SMTP server
SendGridSendGrid API
MailgunMailgun API

Configurationโ€‹

SMTPโ€‹

MAIL_FROM_ADDRESS=noreply@yourdomain.com
MAIL_HOST=smtp.yourdomain.com
MAIL_PORT=587
MAIL_USERNAME=your-email@yourdomain.com
MAIL_PASSWORD=your-email-password

SendGridโ€‹

MAIL_FROM_ADDRESS=noreply@yourdomain.com
SENDGRID_API_KEY=SG.your-sendgrid-api-key

Transactional Emailsโ€‹

EmailTrigger
WelcomeUser registration
Email VerificationAccount creation
Password ResetPassword reset request
InvitationEmployee/user invite
Timesheet ReminderTimesheet submission due
Timesheet ApprovedTimesheet approved
Invoice SentInvoice emailed to client

Email Templatesโ€‹

Templates are located in the API assets directory:

packages/core/src/lib/email-template/
โ”œโ”€โ”€ templates/
โ”‚ โ”œโ”€โ”€ welcome/
โ”‚ โ”œโ”€โ”€ invite/
โ”‚ โ”œโ”€โ”€ password-reset/
โ”‚ โ”œโ”€โ”€ email-verification/
โ”‚ โ””โ”€โ”€ invoice/

Templates support:

  • Handlebars syntax for dynamic content
  • Organization branding (logo, colors)
  • Multi-language support