OxinionDeveloper
oxinion.mail

Send emails when moments happen.

Trigger transactional emails the instant a user enters a geofence. Use mail nodes inside a pipeline for automatic delivery, or call the mail action directly for one-off sends.

Stable
Generally Available

Simple by design

Trigger transactional emails the instant a user enters a geofence. Use mail nodes inside a pipeline for automatic delivery, or call the mail action directly for one-off sends.

  • 01Powered by Resend — reliable deliverability with no SMTP setup
  • 02Use as a standalone call or as a node inside a pipeline
  • 03Every send is logged in action_logs with status and Resend message ID
Full API reference
TypeScript
1import { createOxinion } from 'oxinion';
2
3const oxinion = createOxinion({ apiKey: process.env.OXINION_API_KEY! });
4
5// Send a one-off transactional email
6const result = await oxinion.mail.send({
7 to: "user@example.com",
8 subject: "You're near our store!",
9 html: "<h1>Get 20% off today only</h1><p>Use code <strong>SAVE20</strong> at checkout.</p>",
10});
11
12console.log(result.messageId); // Resend message ID
13
14// Or use inside a pipeline node for automatic triggers:
15// When the geofence fires → mail sends automatically
16await oxinion.nodes.create({
17 pipelineId: "pipe_abc",
18 type: "mail",
19 orderIndex: 1,
20 config: {
21 to: "{{userEmail}}",
22 subject: "Welcome to {{geofenceName}}!",
23 html: "<p>Thanks for stopping by. Here is your coupon: SAVE20</p>",
24 },
25});

Geofence fires. Email sends.

One action call. Resend handles delivery. No SMTP, no queues.