Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

sendora

Latest version: v2.7.1

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
PyPI package Publisher: sendora
20 Versions
1.5K Downloads

Scan summary

sendora was last scanned on 23 Nov 2026 at version 2.7.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 20 versions; the latest 3 were published within 2 days (22 and 23 Nov 2026).
  • Findings: No rules fired in version 2.7.1.
  • Downloads: 1,508 downloads.

Versions

20 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.7.1 LATEST 23 Nov 2026 No rules fired
2.7.0 23 Nov 2026 No rules fired
2.6.2 22 Nov 2026 No rules fired
2.6.1 8 Nov 2026 Not shown
2.6.0 8 Nov 2026 Not shown

No rules fired in 2.7.1

Findings

Findings for v2.7.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 2.7.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

sendora

The Python client for Sendora, transactional email delivery. Python 3.11 or newer, one dependency (httpx2), typed throughout: every request is a TypedDict your editor completes and every answer a frozen dataclass.

pip install sendora

Two kinds of key, two clients. Sendora takes a server key (sk_…) and does everything inside one server: sending, broadcasts, the log, received mail, streams, suppressions, the not-tracked list, tokens, webhooks and the server's own limits. SendoraAccount takes an account key (ak_…) and manages the account: its servers, their keys, its sending and tracking domains. AsyncSendora and AsyncSendoraAccount are the same clients for asyncio. Both keys are secrets: keep them on the server and never ship them to a browser.

from pathlib import Path

from sendora import Sendora

sendora = Sendora()  # the key from SENDORA_API_TOKEN

accepted = sendora.email.send(
    from_={"email": "no-reply@example.se", "name": "Example AB"},
    to=["anna@example.com"],
    subject="Din faktura för september",
    text="Hej Anna, fakturan finns bifogad.",
    attachments=[
        {
            "name": "faktura.pdf",
            "content": Path("faktura.pdf").read_bytes(),
            "content_type": "application/pdf",
        }
    ],
    tag="invoice",
    metadata={"invoice_id": "2026-0912"},
)
print(accepted.message_id)

A client without a key raises ValueError at construction, so build it at startup; Sendora("sk_…") takes the key directly and SendoraAccount() reads SENDORA_ACCOUNT_TOKEN. Make one client per process and share it: it is safe across threads and reuses its connections. with Sendora() as sendora: closes them at the end, as sendora.close() does.

from_ must be on a verified sending domain; it ends in an underscore because from is a Python keyword. to, cc and bcc take plain addresses or {"email", "name"} dictionaries, at most 50 in all; at least one of text and html is required. stream_id names the stream the message goes on; without it the default transactional stream. Attachments take bytes or a base64 string. Every method takes what its route takes, with snake_case names, and answers what the route answers; your own keys, in metadata, headers and substitutions, are sent as you wrote them.

Sending

Call Answers
sendora.email.send(**message) AcceptedEmail with message_id, status, submitted_at and test
sendora.email.send_batch(messages) BatchResult with results, one per message in order

accepted means the message is stored and on its way to the mail server; delivery, deferral, bounce and complaint arrive later as events on the message and as webhooks.

idempotency_key= names the request so a retry cannot send twice. The SDK makes a random UUID when you give none; give your own when a retry may come from another process. The API remembers a key for 24 hours and refuses it with a different body (idempotency_key_mismatch). An error from a send carries the key it went under as error.idempotency_key.

A message's track_opens and track_links switch tracking on or off for that message, whatever its stream's switches say. Left out, the stream decides. True raises tracking_not_confirmed until an administrator has first switched tracking on in the dashboard. Where tracking is not open to the account, it raises tracking_unavailable.

A batch never raises for one refused message. Each result is an AcceptedBatchItem with the id, or a RefusedBatchItem with the same code a single send would raise; a retried batch answers the items sent before with replayed=True.

from sendora.types import RefusedBatchItem

batch = sendora.email.send_batch(messages, idempotency_key="invoices-2026-09")
for result in batch.results:
    if isinstance(result, RefusedBatchItem):
        print(result.index, result.code, result.message)

Messages

Call Answers
sendora.messages.get(message_id) The message with its recipients, tracking, its attachments described and its events
sendora.messages.search(**filters) MessagePage with messages and next, newest first
sendora.messages.search_all(**filters) Every match, page by page, as an iterator
sendora.inbound.get(inbound_message_id) A received message: envelope, parties, headers, text, HTML, attachments described
sendora.inbound.search(**filters) InboundPage of received mail, newest first
sendora.inbound.search_all(**filters) Every received match, page by page, as an iterator
sendora.inbound.raw(inbound_message_id) The raw message as bytes, message/rfc822
sendora.inbound.attachment(inbound_message_id, attachment_id) An attachment's bytes

A stream can also receive on a domain of yours: every address on it, whatever the local part, lands on the stream. Claim it with the stream id, add the two records the answer gives, an MX that names Sendora and a TXT record that proves the claim, and mail is accepted once both are seen. A stream holds one domain, and the first account to verify a name holds it.

Call Answers
sendora.inbound_domains.create(stream_id=, domain=) The domain with mx and txt to add
sendora.inbound_domains.list() InboundDomainList with domains
sendora.inbound_domains.get(inbound_domain_id) One domain with the state of its records
sendora.inbound_domains.verify(inbound_domain_id) The domain plus check per record: ok, missing, mismatch, dns_error
sendora.inbound_domains.delete(inbound_domain_id) None; mail to it is refused from then on

The filters of messages.search are recipient, a whole address or three characters or more of one, stream_id, broadcast_id, tag, status (queued, delivered, deferred, bounced, expired, or a list of them), from_ and to as an aware datetime or ISO 8601, limit (1 to 100, 50 by default) and after, the previous page's next. Bodies are never returned; the log keeps messages for 13 months.

Where mail is tracked, each recipient has tracked, opens, clicks, first_open_at and first_human_open_at. messages.get adds tracking, and its timeline holds Open and Click events with their labels. An administrator switches tracking on for a stream in the dashboard. A message's own track_opens and track_links win over the stream's.

from datetime import UTC, datetime

message = sendora.messages.get(message_id)
delivered = all(recipient.status == "delivered" for recipient in message.recipients)

for bounced in sendora.messages.search_all(
    status="bounced", from_=datetime(2026, 9, 1, tzinfo=UTC)
):
    print(bounced.message_id, bounced.subject)

Streams

Every message goes on a stream of its server. A server starts with a default transactional stream, and the account adds more: transactional and broadcast ones, and one inbound stream, which receives mail at its inbound_address instead of sending. Each sending stream has a suppression list of its own. Its track_opens and track_links show its tracking switches, which an administrator moves in the dashboard.

Call Answers
sendora.streams.create(kind=, name=) The stream; a taken name is stream_exists, a second inbound stream inbound_stream_exists, both with existing_id
sendora.streams.list() StreamList with streams, archived ones included
sendora.streams.get(stream_id) One stream
sendora.streams.update(stream_id, name=, content_retention_days=) The updated stream; the days apply to an inbound stream
sendora.streams.archive(stream_id) The stream with archived_at; it takes no new messages from then on
stream = sendora.streams.create(kind="transactional", name="Aviseringar")
sendora.email.send(
    from_="no-reply@example.se",
    to=["anna@example.com"],
    subject="Leveransen är på väg",
    text="Hej Anna, paketet lämnade lagret i dag.",
    stream_id=stream.stream_id,
)

Broadcasts

One message to many on a broadcast stream, sent as a whole: the content once and one entry per message, up to 50,000 and 50 MB per broadcast. Every message is a message in the log with its own events and webhooks, carrying the broadcast_id, and every recipient gets their own unsubscribe link where {{ unsubscribe_url }} stands. Addresses on the stream's suppression list are dropped and counted in suppressed. The SDK sets an idempotency key, so a retry answers the same broadcast. A message's substitutions, up to 20 strings, replace {{ key }} in the subject, the text and the HTML, escaped in the HTML; a key the content names that a message lacks raises substitution_missing.

A broadcast's track_opens and track_links apply to every message, as a send's do.

Call Answers
sendora.broadcasts.send(**broadcast) AcceptedBroadcast with broadcast_id, total, suppressed and test
sendora.broadcasts.get(broadcast_id) The broadcast with status, released, failed, opened, clicked and links
sendora.broadcasts.list(limit=, after=) BroadcastPage with broadcasts and next, newest first
sendora.broadcasts.cancel(broadcast_id) The cancelled broadcast; what had not left counts as failed
accepted = sendora.broadcasts.send(
    stream_id="7c9e6679-7425-40de-944b-e07fc1f90ae7",
    from_={"email": "nyheter@example.se", "name": "Example AB"},
    subject="Nyheter i oktober, {{ first_name }}",
    text="Hej! Här är månadens nyheter. Vill du inte ha fler? {{ unsubscribe_url }}",
    messages=[
        {"to": ["anna@example.com"], "substitutions": {"first_name": "Anna"}},
        {"to": ["bo@example.com"], "substitutions": {"first_name": "Bo"}},
    ],
)
progress = sendora.broadcasts.get(accepted.broadcast_id)

Suppressions

Addresses the server no longer sends to: hard bounces, spam complaints, unsubscribes and entries added by hand. A send to one of them raises recipient_suppressed.

Call Answers
sendora.suppressions.list(stream_id=, limit=, after=) SuppressionPage with suppressions and next
sendora.suppressions.list_all(stream_id=) Every entry, as an iterator
sendora.suppressions.delete(address=, stream_id=) None; the address may be sent to again

Every stream has a list of its own; without stream_id the calls mean the default transactional stream. A spam complaint or a recipient's own unsubscribe cannot be lifted this way (spam_complaint_locked, unsubscribe_locked); only Sendora support can, at the recipient's own request. A refused send carries stream_id beside suppressed.

sendora.suppressions.delete(address="anna@example.com")

The not-tracked list

Addresses the server never tracks, on any of its streams. Mail to one still goes out, untracked, and its opens and clicks of mail already sent are not recorded.

Call Answers
sendora.tracking_opt_outs.list(limit=, after=) TrackingOptOutPage with tracking_opt_outs and next
sendora.tracking_opt_outs.list_all() Every entry, as an iterator
sendora.tracking_opt_outs.add(address=) TrackingOptOut, as it stands if the address was listed
sendora.tracking_opt_outs.delete(address=) None; not_found if the address is not listed

An entry's source is manual, or recipient if the recipient asked for it. Remove a recipient's own entry only after new consent. An entry's address is None when only a keyed hash of it is left, after an erasure or when the recipient asked from mail that had left the log. delete still finds that entry by its address, and nothing removes it without the address.

To let a recipient ask, write {{ tracking_opt_out_url }} in the text or the HTML of a message on any stream. Each recipient then gets a copy with their own link to a page in Swedish and English. Its button lists the address with the source recipient, and sends the tracking_opted_out event.

sendora.tracking_opt_outs.add(address="anna@example.com")

Tokens

The server's own keys, from its own key. Every key of a server has the same rights; the value is shown once, when it is created; a server holds up to two live keys, and a third is token_limit. The account key manages the same keys under account.servers.tokens.

Call Answers
sendora.tokens.create(name=) CreatedToken with its token value, once
sendora.tokens.list() TokenList with tokens, revoked ones included
sendora.tokens.get(token_id) One token, without its value
sendora.tokens.revoke(token_id) None; the last live key is refused (last_token)

A key's value is kept out of the answer's repr, so a logged answer does not print it; read it from .token.

The server

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases sendora

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Frame 2085668439 (1)
Group 1261154229