Skip to main content

django-serversmtp

EmailBackend oficial pentru Django 4.2+ care trimite mesajele django.core.mail (send_mail, EmailMessage, EmailMultiAlternatives) prin API-ul HTTP ServerSMTP (POST /v1/send).

Configurare (settings.py)

EMAIL_BACKEND = "django_serversmtp.ServerSMTPEmailBackend"
SERVERSMTP_API_KEY = os.environ["SERVERSMTP_API_KEY"]
DEFAULT_FROM_EMAIL = "Facturi <facturi@exemplu.invalid>"

Trimitere cu atașamente și Idempotency-Key

from django.core.mail import EmailMultiAlternatives

email = EmailMultiAlternatives(
    subject="Factura #1042",
    body="Mulțumim pentru comandă!",
    to=["client@exemplu.invalid"],
    headers={"Idempotency-Key": "factura-1042"},
)
email.attach_alternative("<p>Mulțumim pentru comandă!</p>", "text/html")
email.attach("factura-1042.pdf", pdf_bytes, "application/pdf")
email.send()

Metadata

Release files for django-serversmtp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-serversmtp 0.1.0
File Size Uploaded Provenance Actions
django_serversmtp-0.1.0.tar.gz 3.9 kB Without provenance Details for django_serversmtp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-serversmtp 0.1.0
File Interpreter ABI Platform Actions
django_serversmtp-0.1.0-py3-none-any.whl Python 3 none any Details for django_serversmtp-0.1.0-py3-none-any.whl

Total release size: 7.3 kB

Release files / django_serversmtp-0.1.0.tar.gz

Download URL django_serversmtp-0.1.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7b304abe42c92bb843ee5f48fdefb913a6ea95a34af23c271e902d849b3a06a6
BLAKE2b-256 checksum
How to use checksums
5741edb577960740dc94a6faf843ed96aae1b504aad2b17d5589b8bdc91836eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / django_serversmtp-0.1.0-py3-none-any.whl

Download URL django_serversmtp-0.1.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7dc7cdbc26af94f6e26822779b2a50202caba7defd0180d13e6a186c0815038
BLAKE2b-256 checksum
How to use checksums
7c28c34603c7769143512ffb994b18c8c8f0fcb646652b42accd173480ccb89b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for django-serversmtp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page