๐ง Email & SMS โ
KitchenAsty can send transactional emails and SMS messages through the Automation system.
๐ฌ SMTP Configuration โ
dotenv
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USER=your-username
SMTP_PASS=your-password
EMAIL_FROM=noreply@kitchenasty.com๐งช Development Email โ
For local development, use Mailhog to capture emails without sending them:
bash
# Run Mailhog via Docker
docker run -d -p 1025:1025 -p 8025:8025 mailhog/mailhogThen configure:
dotenv
SMTP_HOST=localhost
SMTP_PORT=1025View captured emails at http://localhost:8025.
๐ Email Templates โ
Emails are sent through automation rules. The automation action type: "email" supports template variables that are replaced at send time:
| Variable | Description |
|---|---|
{{customer.name}} | Customer's name |
{{customer.email}} | Customer's email |
{{order.orderNumber}} | Order number |
{{order.total}} | Order total |
{{order.status}} | Current order status |
{{location.name}} | Location name |
See Automation for details on creating email rules.
๐ฑ SMS โ
SMS can be sent via automation actions with type: "sms". Configure your SMS provider credentials:
dotenv
SMS_PROVIDER=twilio
TWILIO_ACCOUNT_SID=your-account-sid
TWILIO_AUTH_TOKEN=your-auth-token
TWILIO_FROM_NUMBER=+1234567890SMS uses the same template variables as email.