Sending Invoices
2025-01-22After creating an invoice, you need to deliver it to the buyer. One convenient method is to send the PDF via email, and Haiku.lt can help with this.
Haiku.lt uses Gmail’s capability to send emails from your Gmail account on your behalf. To use this feature, you need to:
1. Grant Email Sending Permission
When signing in to Haiku.lt, you must grant permission to send emails on your behalf through Google. If you didn’t do this initially, sign out and sign in again.
2. Email Settings
In Settings you can configure:
Email Subject
Customize the email subject line to fit your needs. You can use these variables:
{{invoiceNo}}- invoice number (e.g., INV/001){{buyer}}- buyer name{{seller}}- seller name{{price}}- invoice amount with currency{{invoiceDate}}- invoice date
Email Templates
Choose from these templates:
Plain text - simple text format that works perfectly in all email clients.
Simple HTML - beautifully formatted HTML email using MJML technology.
With logo - HTML template with your company logo at the top.
With logo and price - additionally displays the invoice amount in the email.
With logo, price and additional info - also displays additional information.
HTML templates use the MJML format, which ensures emails look great across all email clients. If you want to create your own template or modify an existing one, you can ask AI for help - just describe how you want your email to look, and AI can generate the MJML code for you.
Template Variables
In all templates you can use these values:
Basic information:
{{issuer}}- person who created the invoice{{invoiceNo}}- invoice number{{buyer}}- buyer{{seller}}- seller{{price}}- invoice amount{{extra}}- additional information{{userNote}}- your note{{emailNote}}- note in the email (entered during sending){{email}}- buyer’s email
Dates:
{{invoiceDate}}- invoice date{{created}}- invoice creation date (same as invoiceDate)
Invoice details:
{{seriesName}}- invoice series name (e.g., “INV”){{seriesId}}- number in series (e.g., “001”){{language}}- invoice language (“lt” or “en”)
Logo:
{{logoUrl}}- logo URL
Brand colors:
{{brandPrimary}}- primary color{{brandSecondary}}- secondary color{{brandText}}- text color{{brandTextSecondary}}- secondary text color{{brandBackground}}- background color{{bodyBackground}}- page background color{{backgroundSecondary}}- secondary background color
Conditional Templates
You can use Handlebars conditions to show content only when a value exists:
{{#if extra}}
<mj-text>Additional information: {{extra}}</mj-text>
{{/if}}
This is especially useful when you want to display an additional information block only when it’s actually filled in.
Brand Colors and Logo
In settings you can also:
- Upload your logo
- Change brand colors
3. Sending the Invoice
- Specify the buyer’s email address in the invoice
- Click the “Send invoice” button
- The invoice will be marked as locked and sent
The invoice will be sent from your Gmail account using the selected template.