Skip to content

๐Ÿ“ง 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/mailhog

Then configure:

dotenv
SMTP_HOST=localhost
SMTP_PORT=1025

View 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:

VariableDescription
{{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=+1234567890

SMS uses the same template variables as email.