hostinger-mail

n8n community node for the Hostinger Email API: send emails, manage messages, folders and webhooks, and trigger workflows on incoming mail

Package Information

Released: 4 mo ago
Downloads: 19 weekly / 190 monthly
Latest Version: 0.1.0
Author: povkysvibes

Documentation

n8n-nodes-hostinger-mail

This is an n8n community node package for the Hostinger Email API. It lets you send and manage email in your Hostinger mailboxes from n8n workflows, and trigger workflows when new mail arrives.

The package contains two nodes:

  • Hostinger Mail — call the Hostinger Email API (send email, manage messages, folders and webhooks)
  • Hostinger Mail Trigger — start a workflow when a new email arrives in a mailbox (uses the API's message.received webhook)

Installation

Follow the installation guide in the n8n community nodes documentation.

In a self-hosted n8n instance: Settings → Community Nodes → Install, then enter n8n-nodes-hostinger-mail.

Credentials

  1. Generate an API token for Hostinger Email (in hPanel, under your email plan).
  2. In n8n, create new Hostinger Mail API credentials and paste the token.
  3. The credential test calls GET /api/v1/me to verify the token.

The token is sent as a Authorization: Bearer <token> header on every request.

Hostinger Mail node

Resource Operations
Account Get (authenticated account and manageable mailboxes)
Email Send (text/HTML body, CC/BCC, attachments from binary data, inline images via Content-ID)
Message Get, Get Many, Search, Get Text, Get Source (.eml as binary), Download Attachment (binary), Move, Move Many, Update Flags, Update Flags Many, Delete, Delete Many, Delete All
Folder Get Many, Create, Update (rename), Delete
Webhook Get, Get Many, Create, Update, Delete, Regenerate Secret, Test

Mailboxes and folders are loaded dynamically into dropdowns from your account, and can also be set with expressions.

Hostinger Mail Trigger node

Select a mailbox and activate the workflow. The node automatically:

  1. Registers a webhook for the message.received event pointing at your n8n webhook URL.
  2. Verifies each delivery using the webhook secret (sent by Hostinger as a bearer token).
  3. Removes the webhook when the workflow is deactivated.

Your n8n instance must be reachable from the internet for deliveries to arrive (set WEBHOOK_URL if you are behind a proxy).

Development

npm install
npm run dev     # run n8n locally with the node loaded
npm run lint    # lint with the n8n community node rules
npm run build   # build to dist/

Publishing

npm run release

This bumps the version, tags, and pushes; the included GitHub Actions workflow (.github/workflows/publish.yml) publishes to npm. Alternatively run npm publish directly after npm run build.

Resources

License

MIT

Discussion