๐ก Free: 200 emails/month โ enough for a daily treatment for 6+ months. No credit card required.
What you'll need
- A Google account (Gmail)
- A free account on emailjs.com
- 10โ15 minutes
Step 1 โ Create an EmailJS account
- Go to emailjs.com
- Tap Sign Up and create a free account
- Confirm the email you receive
Step 2 โ Connect your Gmail
This is the account emails will be sent from.
- In the EmailJS dashboard, click Email Services in the left menu
- Click Add New Service
- Choose Gmail
- Click Connect Account โ the Google window opens โ choose your Gmail account and authorize
- Give the service a name (e.g.
Miau App) โ click Create Service - Note or copy the Service ID โ it looks like
service_abc1234
Step 3 โ Create the email template
The template defines what the email you receive looks like.
- In the left menu click Email Templates
- Click Create New Template
- Fill in the fields:
To Email:
{{to_email}}
Subject:
Miau โ Treatment {{copil}} on {{data}}
Body (email content):
Hello,
Treatment report for {{copil}}.
Date: {{data}}, time: {{ora}}
Dose given: {{picaturi}} drops ร {{unitati}} units
Symptoms: {{simptome}}
Staloral stock: {{stoc_pic}} drops left in the vial, {{stoc_fla}} spare vials
Antihistamine stock: {{stoc_anti}}
---
Sent automatically by the Miau app ๐พ
- Click Save
- Note the Template ID โ it looks like
template_xyz7890
Step 4 โ Copy your Public Key
- Click the profile icon (top right) โ Account
- Go to the General section
- Copy the Public Key โ a string of ~20 characters
Step 5 โ Enter the details in the Miau app
- Open Miau โ Settings โ๏ธ tab
- Scroll to the EmailJS Setup section
- Fill in the 3 fields: Service ID, Template ID, Public Key
- Tap Save
- Above that, in the Daily email reports section, enable the toggle and enter the address you want reports sent to
- Tap Save
โ
Testing: Complete a treatment in the app โ check your inbox. If it doesn't arrive within 2โ3 minutes, also check your Spam folder (first emails sometimes land there).
Variables available in the template
You can customize the email text anytime using these variables:
| Variable | What it contains |
|---|---|
| {{copil}} | Treatment name (e.g. "Matei โ cat") |
| {{data}} | Date in DD.MM.YYYY format |
| {{ora}} | Time the treatment was completed |
| {{picaturi}} | Number of drops given |
| {{unitati}} | Units (10 or 100) |
| {{simptome}} | List of symptoms or "All OK" |
| {{stoc_pic}} | Drops left in the vial |
| {{stoc_fla}} | Spare vials in stock |
| {{stoc_anti}} | Antihistamine stock (or "N/A") |