Message templates
Change the wording of the seven SMS and e-mail messages Captivo sends to guests and sponsors: when each one is sent, the variables you can use, languages, the SMS length counter, test sends and when a save is refused.
The seven messages
Each message is a tab. The variable names are written in single braces and are replaced when the message is sent.
| Tab | Sent when | Variables |
|---|---|---|
| WiFi Details — SMS | A guest signs in with a phone number; also when a guest is created from the panel, when a sponsor approves one and when the public API sends one. | {company} {code} {password} {username} {duration} {expiry} {domain} |
| WiFi Details — Email | A guest signs in with an e-mail address (and when a sponsor approves one). | {company} {guestName} {guestEmail} {username} {password} {duration} {expiry} |
| Sponsor Approval — Email | A guest asks a sponsor for access; the sponsor receives the request with an approval link. | {company} {sponsorName} {guestName} {guestPhone} {guestEmail} {guestCompany} {guestReason} {approvalUrl} {expiresAt} |
| Voucher Code — SMS | You send a voucher code to a guest from the panel. | {company} {code} {sessionHours} {validityHours} |
| Voucher Code — E-mail | You e-mail a voucher code to a guest from the panel. | {company} {code} {sessionHours} {validityHours} |
| Local User — SMS | You send a local user's login details from the panel. | {company} {username} {password} {validUntil} |
| Local User — E-mail | You e-mail a local user's login details from the panel. | {company} {username} {password} {validUntil} |
{duration}is the session length in minutes after connecting,{expiry}is how many minutes an unused password stays valid, and{sessionHours}/{validityHours}on voucher messages are in hours.{code}and{password}carry the same value on the WiFi SMS.{company}is your organisation's name;{domain}is the address of your login page withouthttps://.- Each tab lists under Available Variables exactly the names it supports. A name that is not on the list, or one borrowed from another tab, is not replaced: it is sent literally, braces included. While you type, a red Unknown variable(s) warning names them.
Delivery status cards
The two cards at the top, SMS Configuration and Email Configuration, say Configured (green, with the sender) or Not configured. A card is green only when the matching gateway is saved and active. A template for a channel that is not configured can be previewed but never reaches anyone: set up the SMS gateway and the mail server first.
Editing a message
- Pick the message tab. The line under the tabs says when it is sent.
- Press Edit. E-mail tabs show Email Subject and Email Body; SMS tabs show SMS Template. Click into the field and type; use the variable names from the list below it.
- Press Preview to see the message as it will be sent, with sample values. An empty field means "use the built-in text".
- Press Save. The page confirms with Template saved successfully and returns to the preview; a Custom badge marks a message that carries your own text.
- Reset to Default (shown while the tab has text of its own) asks for confirmation and deletes your text for that tab, so the built-in message is used again.
- Save writes only the open tab and language. Changes on other tabs stay as drafts in the page; an amber dot on a tab or language button marks unsaved changes, and the browser warns if you leave with any.
- E-mail body: your text is placed inside a header with your company name and colour, a card and a footer, exactly as the preview shows. Do not write your own header or the e-mail carries two. Line breaks are kept. Values such as a guest's name are escaped, so they cannot inject markup.
- SMS length: the bar under the SMS field shows characters, encoding and the number of parts. Plain characters use GSM-7: 160 characters per message (153 when it is split). A single Turkish letter such as ı, İ, ğ, Ğ, ş, Ş or ç, or an emoji, switches the whole message to UCS-2: 70 characters per message (67 split) and a bar in amber. The built-in texts avoid this by dropping Turkish accents; text you write yourself is sent exactly as typed, and
{company}is your real company name.
{company} WiFi: user {username}, password {password}. Valid {duration} min. Help: reception.With the sample values this reads: Acme Hotels WiFi: user 5321234567, password 847291. Valid 60 min. Help: reception. (about 80 characters, GSM-7, one part).
Languages
Above the editor, Template language offers All languages, Türkçe and English. A small blue dot on a button means that bucket has text. When a message goes out Captivo looks for text in this order: the text for the message's own language, then the All languages text, then the built-in message in that language.
- Which language a message is in: a guest message follows the portal's current language (what the guest's browser chose, not a setting you control); if the request carries none, your organisation's language; if the language is not Turkish or English, English. The sponsor e-mail is read by a colleague, so it uses your organisation's language.
- One template is enough: text saved under All languages goes out in every language, so an English guest receives your Turkish wording if that is what you wrote. Write a language-specific text only when you want the two to differ.
- Emptying one bucket and saving deletes just that bucket.
Sending a test
Press Send test in the tab. A window asks for a phone number (SMS tabs) or an e-mail address (e-mail tabs), lists the sample values and sends the message exactly as the editor shows it, including text you have not saved yet, with those sample values and no marker text added.
- An SMS test goes through your SMS provider and is billed like any SMS; it needs the gateway saved and the SMS service active, otherwise it fails with SMS yapılandırması bulunamadı. It appears in Settings → Logs → SMS.
- An e-mail test uses your mail server (on Cloud, the platform's when you have none) and is recorded in Settings → Logs → E-mail.
- The phone must be at least 10 characters and the address must look like an address; otherwise the window refuses before sending. Each test is also written to the audit log.
When a save is refused
A save also needs the matching configuration to exist: SMS templates need a saved SMS gateway and e-mail templates a saved mail server, otherwise the page shows a message, in the panel language, asking you to configure that first. All seven tabs, including the two e-mail tabs for voucher codes and local users, save normally.
Common problems
- My change did not apply: it was typed on one tab and saved on another, or saved under a language bucket other than the one the guest's message uses. Check the amber dots and the Template language buttons.
- The guest sees
{name}in the message: that variable is not offered by this tab. Use only the names under Available Variables. - The SMS costs two messages: a single non-GSM character (often a Turkish letter in your own text or company name) made it UCS-2. Check the counter.
- Guests do not get the e-mail at all: see the mail server page and the sign-in methods (Guest sign-in methods).