Skip to main content
Infidec Marketplace logo
v1.0.0

Type to search pages and sections, e.g. “razorpay”, “package name”, “SHA”.

Email Templates

The six transactional e-mail templates (booking completed, refer & earn, welcome, wallet top-up, withdrawal approved and requested), their variables, and the SMTP settings page.

Admin → Growth → Email templates ("Transactional emails sent by the platform") holds the subject and body of each platform e-mail. You edit the wording; you can't add or delete templates.

Email templates
Admin → Growth → Email templates

Templates live in email_templates, one document per template id.

Load the templates

On an empty page click Load 6 defaults:

IdTemplateSent whenVariables
booking_completedBooking completedA ride is completedname, booking_id, pickup_location, drop_location, booking_time, driver_name, vehicle_number, total_fare, support_email
refer_earnRefer & earnA referral convertsname, amount, referral_name, support_email
welcomeWelcome emailA new user signs upname, support_email
wallet_topupWallet top-upAdmin tops up a walletname, amount, balance, transaction_id, support_email
withdrawal_approvedWithdrawal approvedAdmin approves a withdrawalname, amount, transaction_id, support_email
withdrawal_requestedWithdrawal requestedA driver requests a withdrawalname, amount, transaction_id

Table

ColumnShows
TemplateName (read-only)
Sent whenTrigger description (read-only)
SubjectCurrent subject line
EnabledInline switch

Edit a template

FieldNotes
Template, Sent whenRead-only
SubjectRequired, e.g. Trip completed — receipt for booking #{{booking_id}}
BodyRequired, plain text. "Use the {{variables}} listed below."
VariablesRead-only list of the placeholders this template supports
EnabledOff = don't send this e-mail

Write placeholders with double braces: Hi {{name}}, your trip from {{pickup_location}} to {{drop_location}} is complete. Total fare: {{total_fare}}.

SMTP settings

Settings → Integrations → SMTP ("Outgoing mail server used for email templates.") saves to secure_settings/smtp, which only admins and Cloud Functions can read.

FieldDefault / example
SMTP hostsmtp.gmail.com
Port465
Usernamenoreply@yourcompany.com
PasswordMasked. For Gmail use an app password
EncryptionSSL / TLS / None (SSL for 465, TLS for 587)
From nameGo4Ride
From emailnoreply@yourcompany.com

Any SMTP provider works: Google Workspace, Zoho, Amazon SES, Brevo, SendGrid or Mailgun.

Next: Achievement Badges →

Something unclear or out of date? Tell us. contact@infidec.com