Mail
Email in Gurita has two places: the templates you write, and the Mail settings page, which holds the sender mailboxes, the sending rules, the outbound queue, the schedule of automatic mails and the delivery statistics. Sending email requires the Mail module; automatic mails also need the Scheduled Mails module.
This page covers the templates and the Setup tab. The queue, the schedule, the scheduler queue and the statistics are on Mail queue, schedules and statistics.
Mail templates
Where: Settings → Templates (/config/mailtemplates)
Templates are reusable, branded documents. There are two kinds: mail templates (an email, with a subject) and plain templates (a printable document such as an invoice PDF). Templates live in folders you create in the left panel.
Mail templates list with folders
- Create a template; the editor opens on its own page.
- Copy a template to start a new one from an existing design.
- Move selected templates into a folder.
- Templates with a lock / no-edit icon are system templates — you can view but not delete or edit them.
Placeholders (variables). Templates fill in live data with {{ … }} tokens. Type a data path where you want the value to appear — for example {{customer.masterData.firstName}} {{customer.masterData.lastName}} for the guest's name — and it's replaced when the email or document is generated. Any custom field you define on the template becomes {{custom.yourKey}}.
The template editor opens on its own page, with tabs:
- Overview — the name and subject, the type (html for an email or web document, media for a stored PDF), the folder, the assets the template applies to, inline documents/attachments, whether it counts as a mail template, and which visual editor to use.
- Custom fields — define your own
{{custom.*}}fields (key, title, type, an optional description shown as help text, and — for lists — the choices) to reuse in the body. Staff fill them in when they send the mail. On a mail template, switch Required on for a field that must not be empty: the send dialog then blocks sending until it has a value. - PDF Fields — for a PDF (media) template, map each fillable field in the PDF to a placeholder so the document is completed automatically.
- HTML / Visual Editor — edit the email body as code, or with the drag-and-drop editor.
To write a mail template:
- Create a template and give it a name and subject.
- Set the type to html, then choose a folder and the assets it applies to.
- Write the body, inserting
{{ … }}placeholders where live data should appear. - Add any custom fields you need, then Save.
- Reference the template from Booking settings → Templates, a notification, or a mail schedule.
Mail settings
Where: Settings → Mail (/config/mail)
The E-Mail page brings together everything Gurita sends: the mailboxes it sends from, the rules for sending, the log of every mail, the automatic mails and how well they are delivered. It has five tabs:
| Tab | What it is for |
|---|---|
| Setup | Sender accounts, the master sending switches, sender and reply addresses, the layout around scheduled mails, and subscription defaults. |
| Queue | Every outgoing mail and what happened to it. Retry or delete mails here. |
| Schedule | The automatic mails ("10 days before arrival", "after the last stay" …) and their editor, preview and test send. |
| Scheduler queue | One row per recipient of a scheduled mail: what is planned, what was sent, what was opened. |
| Statistics | Delivered versus aborted mails per day, and why mails were aborted. |
The Setup tab is described below. The other four tabs are on Mail queue, schedules and statistics.
Mail settings page with the five tabs and the Setup cards
Opening a tab directly
The selected tab is part of the page address, so you can bookmark a tab or send a colleague a link to it:
| Link | Opens |
|---|---|
/config/mail?tab=setup | Setup |
/config/mail?tab=queue | Queue (all mails) |
/config/mail?tab=queue&view=cancelled | Queue, filtered to Cancelled. The other filters are pending, sent, failed and draft (Dry run). |
/config/mail?tab=schedule | Schedule |
/config/mail?tab=scheduled | Scheduler queue |
/config/mail?tab=stats | Statistics |
Older bookmarks to the separate Mail Queue, Mail Scheduler and Scheduled Mails pages still work: they now open the matching tab of this page.
Who can access each tab
You only see the tabs your role allows. If none applies, the page shows No mail settings available.
| Tab or action | Required permission |
|---|---|
| Setup tab | Mail → Edit (mail.update) |
| See the Sender accounts card | Mail accounts → View (mailaccount.read) |
| Add account | Mail accounts → Create (mailaccount.create) |
| Edit, Reconnect, Send test mail, Test connection | Mail accounts → Edit (mailaccount.update) |
| Delete an account | Mail accounts → Delete (mailaccount.delete) |
| Queue and Statistics tabs | Mail queue → View (mailqueue.read) |
| Retry, Retry all cancelled, Retry all failed, Send now | Mail queue → Edit (mailqueue.update) |
| Delete queued mails | Mail queue → Delete (mailqueue.delete) |
| Schedule and Scheduler queue tabs | Mail schedule → View (mailschedule.read), and the Scheduled Mails module must be active |
| New schedule, Duplicate | Mail schedule → Create (mailschedule.create) |
| Save changes to a schedule | Mail schedule → Edit (mailschedule.update) |
| Preview, Send test… | Mail schedule → Edit (mailschedule.update) and Bookings → View (bookings.read). Both need a booking to fill in the mail. Without both, the buttons are hidden. |
| Delete a schedule or a row of the scheduler queue | Mail schedule → Delete (mailschedule.delete) |
Note: The Mail entry in the Settings menu follows the Settings menu's own permissions. A user who only has the queue or schedule permissions can still open the page through a direct link, for example
/config/mail?tab=queue.
Warning banners
Banners at the top of the page tell you when something stops mail from going out:
- "reservations@example.com can't send mail" appears when a sender account can no longer sign in: Google rejected the sign-in (Gmail) or The mail server rejected the login (other providers). It shows how many mails have been cancelled since then. Reconnect (Gmail) or Edit account (other providers) fixes it; View cancelled opens the cancelled mails in the Queue tab. While such mails exist, the Queue tab shows a red badge with their number.
- Dry run is on. appears while dry run for scheduled mails is switched on: scheduled mails are prepared and logged but never delivered to guests. Turn off switches it off; the banner then reads Turned off — save to apply until you save.
Setup tab
The Setup tab is a set of cards. Changes to the Sending, Sender & replies, Scheduled mail layout and Subscriptions cards are collected in a bar at the bottom of the page ("3 unsaved changes") until you click Save or Discard. If you try to leave the page with unsaved changes, Gurita asks first. Sender accounts are different: each account is saved on its own, in its own dialog.
Sender accounts
The Sender accounts card lists the mailboxes Gurita sends from. Each row shows the address, the name guests see, the provider and the daily limit, for example Guests see "Reservations Team" · Gmail · 500 mails / day, and its state:
| State | Meaning |
|---|---|
| Connected | The account is active and can sign in. The row also shows Last delivered with the date of its last delivered mail. |
| Paused | The account's status is set to Paused. Gurita does not send through it; mails that would use it go out through the default sender. |
| Sign-in expired | The provider rejected the sign-in. The account sends nothing until you fix it, and the row shows Not delivering. |
The account marked Default is used for every mail that doesn't name its own account.
If the Default account is Paused or its sign-in is not verified, it cannot send. The row then shows Default · not in use instead. Mails without an own account go out through the effective default sender: the active, connected account that takes over. Hover the badge to see which address that is. The star marks the account that really sends.
Row actions: Reconnect (only when the sign-in expired), Send test mail (sends a test mail to your own address and shows Test mail sent to … or Test mail failed: …), and Edit account.
Adding a sender account
- Click Add account. The Add sender account dialog opens.
- Under Sender, enter the Display name (for example Reservations Team) and the E-mail address. The Guests will see line shows how the sender will look in a guest's inbox.
- Under Provider, pick one of the three tiles and fill in what it asks for (see below).
- Under Sending, set the Status (Active or Paused), the Daily limit and whether this is the Default sender.
- Optional: click Test connection. Gurita signs in and sends a test mail to your own address. You see Works — test mail sent, or Rejected: … with the reason.
- Click Save account.
The three providers:
| Provider | What you enter |
|---|---|
| Gmail — Sign in with Google | Nothing technical. Click Sign in with Google; Google's sign-in window opens (allow pop-ups for Gurita). Choose the mailbox you entered as the e-mail address and allow access. The dialog then shows Connected to Google: "Signed in as … No password is stored in Gurita." Use Switch account to connect a different Google mailbox. The server settings are fixed: smtp.gmail.com, port 465, SSL/TLS. |
| Microsoft 365 — Username & app password | Username (usually the e-mail address) and Password. The server settings are filled in automatically: smtp.office365.com, port 587, STARTTLS. Microsoft 365 sends through SMTP with an app password, not a sign-in window: create an app password for the mailbox in your Microsoft account and make sure SMTP AUTH is enabled for it. |
| Other (SMTP) — Server, port & password | SMTP server (for example mail.yourdomain.com), Port, Encryption, Username and Password. |
Encryption (Other SMTP only):
| Option | Use when | Usual port |
|---|---|---|
| STARTTLS | The server starts unencrypted and upgrades the connection. Most providers. | 587 |
| SSL/TLS | The connection is encrypted from the first byte. | 465 |
| None | Only for a mail relay inside your own network. Passwords travel unencrypted. | 25 |
Sending settings:
- Daily limit — the most mails this account sends per day. Enter 1 or more, or leave it empty to use the global default (the placeholder shows it, e.g. Global default (500)). 0 is rejected: "Enter at least 1 — or leave empty for the global default. 0 would stop this account from sending." To stop an account from sending, set its Status to Paused instead. For a Gmail account the limit cannot be set above Gmail's own daily quota; raising it would not help anyway, because Google blocks the account when its quota is used up.
- Default sender — "Used for every mail that doesn't specify an account. Only one account can be the default." Turning it on for one account turns it off for the previous default.
Changing an account and re-entering the password
Gurita never shows a stored password or Google token again — the password field says Leave empty to keep the current password. Leaving it empty keeps the stored password only as long as the login settings stay the same.
If you change the SMTP server, Port, Username, Encryption or the provider, you must type the password again. The dialog shows The server, port, login or encryption changed — enter the password again., and saving without it is refused with "The login settings changed — enter the password again. The saved password is only used with the settings it was saved for." This protects the stored password: it can never be sent to a different server than the one it was saved for.
For a Gmail account, changing the e-mail address (the login) disconnects Google. Sign in with Google again afterwards.
If you close the dialog with unsaved changes, Gurita asks Discard changes? — choose Keep editing or Discard.
Reconnecting an account
When a provider rejects the sign-in — typically after a password change, when access to Gurita was revoked in the Google account, or when the mailbox is locked — the account shows Sign-in expired and the page shows a banner.
- Gmail: click Reconnect (on the row, in the banner, or in the dialog's Google sign-in expired box) and sign in with Google again. When it works, Gurita shows reservations@example.com is connected to Google.
- Microsoft 365 and Other (SMTP): Reconnect opens the account dialog. Enter the current password (or a new app password) and save.
Mails that were waiting for the account are sent automatically once it can sign in again. Mails that were already cancelled stay cancelled until you retry them in the Queue tab.
Deleting an account
Open the account and click Delete. The button turns into Click again to delete. Click it again within 5 seconds to delete the account. If you wait, the button resets by itself.
Before you confirm, the dialog tells you what happens to mail still waiting for this account: "Mails still queued for this account (3) will go out via …" (the default sender), or No mails are queued for this account. If mails are queued and no default sender can take them, it warns that the delete will be refused.
The default sender cannot be deleted. This covers the account marked Default (the button is disabled with the hint Make another account the default first) and the effective default sender that takes over while the marked one is paused. Gurita refuses that delete with "The default sender cannot be deleted. Make another account the default sender first."
Gurita also refuses the delete when the account still has queued mails and no default sender can take them: "This account still has queued mails and there is no default sender to take them. Define a default sender first." Make an active, connected account the default, then delete.
Schedules that sent from the deleted account switch to the default sender. The toast says how many: "Account deleted. 2 schedules sent from it and now use the default sender."
Sending
"Whether and how fast mail leaves the system."
| Setting | What it does |
|---|---|
| Send mails | Master switch. When off, nothing leaves Gurita — mails wait in the queue until you turn it back on. The card shows Paused while it is off. |
| Dry run for scheduled mails | Test your mail schedule safely: scheduled mails are generated and logged, but not delivered. They appear in the Queue as Dry run. Other mails (booking notifications, mails you send by hand) are not affected. The card shows Not delivering while it is on. |
| Mails sent per minute | How many queued mails are sent each minute (1–1000). Higher is faster, but your mail provider may limit how many mails an account can send. |
| Delete mail log after | Mails in the queue older than this number of days are removed automatically. |
Sender & replies
"Who a mail appears to come from, and where answers land."
| Setting | What it does |
|---|---|
| Send replies to the property address | Sets "Reply-To" to the property's own e-mail address, so guest answers reach the front desk instead of the sending mailbox. |
| Send from the property address | Replaces the account's own address in "From" with the property's address, when a sender account exists for it. Only enable this if your provider allows sending as that address. |
| Copy the booking's sales contact | Notification mails also go to the sales contact assigned to the booking. |
The Guest sees box next to the switches shows the result — what a guest will see as From, Reply-To and Cc with your current choices. Without a sender account for the property address, the default sender is used. A property without an e-mail address changes nothing: its mails go out from the sender account as usual, and no Reply-To is set for it. "Send replies to the property address" has no effect while mails are sent from the property address.
Scheduled mail layout
"Wrap every scheduled mail in a header and footer." Choose a Header · above the mail and a Footer · below the mail template; the content of each scheduled mail goes in between. Pick No header / No footer to leave one out.
The template pickers are searchable: type part of a template name to narrow the list. Templates are grouped by their template folder, templates without a folder come first. If a stored template no longer exists, the picker shows Unknown template until you choose another one.
Subscriptions
"Who receives mails if a guest hasn't said yes or no."
- Scheduled mails — pre-arrival, follow-up and campaign mails from the mail schedule. On = guests receive them unless they opted out. Off = only guests who opted in receive them.
- Opt-in stored in customer field — the dot-separated path of the customer field that holds the guest's opt-in (true or false). Leave it empty to use the default above.
Keyboard and screen readers
- Option groups (account Status, Provider and Encryption, the schedule Status, the preview Preview width, the booking list in Send test) are one Tab stop. Move inside the group with the arrow keys, Home and End.
- Form errors are announced by screen readers and the first field with an error gets focus when you save.
The keyboard shortcut for the Schedule list is on Mail queue, schedules and statistics.
Troubleshooting
Problems with the queue, schedules and test mails are covered under Troubleshooting on the queue and schedules page.
A sender account shows "Sign-in expired" / the banner says "reservations@example.com can't send mail". The provider no longer accepts the login. For Gmail, click Reconnect and sign in with Google again. For Microsoft 365 and other SMTP accounts, click Reconnect or Edit account and enter the current password (Microsoft 365: a new app password). Then open View cancelled and click Retry all cancelled to send the mails that were cancelled in the meantime.
The Google sign-in window doesn't open. "Your browser blocked the Google sign-in window. Allow pop-ups for this site and try again."
"The authorization link has expired …" after signing in with Google. The Google sign-in has to be completed within 15 minutes of clicking Sign in with Google or Reconnect. Start again from the account.
"The Google account that granted access is not this mail account's address." You signed in with a different Google account than the one entered in Gurita. Nothing was changed. Connect again and choose the configured account.
"The login settings changed — enter the password again." You changed the server, port, username, encryption or provider. Type the password into the Password field and save again.
"This SMTP host is not allowed …" The SMTP server you entered points to Gurita's own server, a link-local address or a cloud metadata address. Enter your provider's real SMTP server.
"Too many requests. Please wait a minute and try again." Gurita limits how fast one network address can send requests. Wait a minute, then try again. Errors from Gurita now appear in your app language like this one.
"The default sender cannot be deleted" / "This account still has queued mails and there is no default sender to take them." Make another active, connected account the Default sender, then delete the account (see Deleting an account).
Who can access this: see Who can access each tab. Visible when the Mail module is active; the Schedule and Scheduler queue tabs also need the Scheduled Mails module.
