Alya Books

    Help centre

    Guides for Alya Books and UAE e-invoicing

    Email channels and your own mailbox: the sending mailbox, aliases and signatures, how client messages leave

    Send from your organisation's own mailbox once it is verified, give your team aliases with signatures that show the real sending address, and see which channel carries each client message.

    Everything the product sends to a client leaves through one of a few channels. In this release those are email (through your organisation's own mailbox when it is verified, else the platform sender with your name and reply-to) and the portal (the client sees the message in their portal inbox and, when they are signed in, as a notification). WhatsApp arrives with a later release and plugs into the same list; the firm's digests and reminders do not change when it does.

    Where to find it: Settings → Document dispatch for the mailbox and the aliases; the client record's Reminders card for the channel a client's messages take; the Messages tab for what went out and how.

    The sending mailbox

    Settings → Document dispatch has three cards that build on each other:

    1. SMTP server: your mail server's host, port, username and password. Switching it on sends nothing through it yet.
    2. Your own mailbox: click Verify mailbox. One test email is sent through the server you stored (to the SMTP username by default, or an address you type). When it arrives, the badge reads Verified and from then on your invoices, reminders, statements, client messages and portal sign-in links leave from that address. If the test fails, the card shows the server's error and nothing changes: your emails keep leaving from the platform sender with your organisation's name and reply-to. A server that cannot be reached at all (a wrong host or port, a refused connection) is refused with that reason: The mail server smtp.example.com:587 could not be reached: ….
    3. Sending domain: the alternative for organisations without a mail server: a DNS record proves the domain and the platform provider sends as invoices@yourdomain.

    Any change to the server, port, username or password clears the verification; run Verify again. The password is stored sealed: no page or API answer ever returns it, only whether one is stored.

    The mailbox belongs to the organisation, not to a person. Inside a managed client the client's own mailbox is used; a firm's own mailbox carries the firm's own documents.

    Aliases and signatures

    Once a mailbox or a sending domain is verified, Aliases lets you add addresses on that domain: sara@yourdomain for a member, accounts@yourdomain for the team. Each alias has a display name, optionally the member it belongs to, and a signature. Leave the alias's signature empty to render the team signature (the Signature card above) with the alias filled in: write {{alias_name}} and {{alias_address}} in the team signature and every alias signs with its own name and the real sending address, never a typed one.

    Preview shows an email of any kind (a reply, the client digest, a report notice, an invoice) as it would leave from an alias: the from address, the reply-to, the signature and the text of your template for that kind, or the platform default when you have not worded one. Templates are edited under Settings → Documents → Email templates; the kinds Reply to a client, Client digest and reminders and Report published to the portal were added for this release, in English and Arabic.

    When the sender is the platform (nothing verified yet), an alias cannot be the from address: it becomes the display name and the reply-to, so the client's reply still reaches the right person.

    Which channel carries a client message

    On a client's record, the Reminders card names the channel the client's messages take: Email (the default), Portal only, or, on the local stack, the two stubs. The Messages tab lists every digest, urgent item and report notice with its channel, its status (Queued, Sent, Failed, Suppressed when the client had paused the schedule), when the client opened it and how many links they clicked.

    A channel that only sends approved templates refuses a free-text message with template_required; the message reads Failed with that reason and the Messages tab shows it. Email and the portal take free text.

    Send from an alias

    Once your organisation has at least one alias, every dialog that sends an email shows the field Send from: Send by email on an invoice or another document, the statement email, the remittance advice email, a firm's bulk message and the reply from a task. An organisation with no alias sees no such field, and its emails leave from the organisation's sending address.

    • Default leaves the choice to Alya Books: your own alias when one belongs to you, else the alias marked as the organisation's default, else no alias. The option names where it leads, for example Default (Sara).
    • Any other alias in the list sends this one email from that alias.
    • The line under the field shows the address the email leaves from, or says that it leaves from the organisation's sending address.

    An email sent from an alias carries that alias's signature in place of the team signature. A message template can name an alias: inserting it switches Send from to that alias. A bulk message leaves from the alias chosen on the message itself; choose it there. The digests, urgent items and report notices the product sends by itself leave from the organisation's default alias when it has one.

    On the platform sender (no mailbox and no sending domain verified), an alias cannot be the from address. It becomes the display name and the reply-to, so the reply still reaches the right person.

    Reply to an email from a task

    A task or a job that started as an email (see Email to task) can be answered from its own page.

    1. Open the item under Work and click Reply by email. The button shows only on an item that came from an email.
    2. The dialog names the item's number in its title and shows To: the address that sent the original email.
    3. Choose the alias under Send from, or leave Default.
    4. Leave Subject empty to send Re: and the item's title, or type your own. The item's number is added to the subject, for example [#128].
    5. Write the Reply, or click Insert template to add a text from your message templates.
    6. Click Send reply.

    The reply leaves from your firm's mailbox as an answer to the original email, so the person's mail program shows it in the same conversation. It is kept on the item as a comment with the line Emailed to and the address, the alias, and a state: Queued, Sent, Failed with the mail server's error, or Skipped when no mail service is configured on the deployment (the reply is saved and no mail is sent).

    The answer comes back to your own mailbox, like any email. Because the subject carries the item's number, a member of the firm who forwards that answer to the firm's work address adds it to the same item as a comment, not as a new task.

    Through the API and an assistant

    POST /mailbox/verify, GET and POST /email-aliases, POST /email/preview and GET /client-messages are the routes; list_client_messages the MCP tool. See the developer docs for the Settings and Reminders tags.

    The routes that send an email accept aliasId (the invoice and document send, the statement, the remittance advice); without it the default above applies, and an alias of another organisation is refused with alias_not_found. POST /work/{id}/reply with body, and optionally subject and aliasId, sends the reply from a task and answers the comment with its state; an item that did not start as an email is refused with work_not_from_email.

    Still stuck? Contact support