Skip to main content

Gmail OAuth email API — send transactional emails from any hosting, no SMTP ports needed. CLI, SDK, and REST API included.

Project description

talocode-maillane

Gmail OAuth email API — send transactional emails from any hosting, no SMTP ports needed.

PyPI License: MIT

Why MailLane?

Free hosting providers (Railway, Render, Vercel) block SMTP ports 25, 465, 587. Your email libraries fail. Services like Resend require custom domain setup first.

MailLane solves this with Gmail OAuth. Connect your Gmail account with one click, get a REST API to send emails. No SMTP ports. No custom domain. Works from any hosting.

Install

pip install talocode-maillane

Quick Start

CLI

# Connect your Gmail account
maillane auth

# Send an email
maillane send --to user@example.com --subject "Hello" --text "Test email"

# Check stats
maillane stats

# List accounts
maillane accounts

Python SDK

from maillane import MailLaneClient

client = MailLaneClient(api_key="your-api-key")

# Send an email
client.send_email(
    to=["user@example.com"],
    subject="Hello from MailLane",
    text="This email was sent via MailLane!"
)

# Send HTML email
client.send_email(
    to=["user@example.com"],
    subject="Welcome!",
    html="<h1>Welcome!</h1><p>Your account is ready.</p>"
)

# List accounts
accounts = client.list_accounts()

# Get stats
stats = client.get_stats()

CLI Commands

Command Description
maillane auth Connect a Gmail account via OAuth
maillane accounts List connected Gmail accounts
maillane send Send an email
maillane stats Show account sending stats
maillane remove Remove a connected account

API

MailLane provides a REST API. All requests require a TALOCODE_API_KEY.

import os
from maillane import MailLaneClient

client = MailLaneClient(
    api_key=os.environ.get("TALOCODE_API_KEY"),
    base_url="https://api.talocode.site"
)

client.send_email(
    to=["user@example.com"],
    subject="Hello",
    text="Test email"
)

Pricing

MailLane uses credit-based pricing through Talocode Cloud.

Action Credits
Send text email 2
Send HTML email 3
Send with attachment 5
Connect account Free
List accounts Free
Get stats Free

1 credit = $0.01 USD. New projects get 100 free credits.

Related Packages

Links

License

MIT © Talocode

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

talocode_maillane-0.1.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

talocode_maillane-0.1.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file talocode_maillane-0.1.1.tar.gz.

File metadata

  • Download URL: talocode_maillane-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for talocode_maillane-0.1.1.tar.gz
Algorithm Hash digest
SHA256 74191e89fcba68c913816e7a2feef6364f44733830b62635aef4556a74440a53
MD5 1ede3ada99721cc65ca3be7e28752dbe
BLAKE2b-256 32341aebc56189b22657a1e076629bbcc5e862d5a13c46c7e458189cf1f8069a

See more details on using hashes here.

File details

Details for the file talocode_maillane-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for talocode_maillane-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 53c81b5009b630a9b6a43d55dd0b8954864e34414f363b40734975574ad5d577
MD5 1588e46004476b9899cb7a0d32664f9d
BLAKE2b-256 09eec9ae4b77ab7466010c69b992770e6d5f80ca7468b6ab0abae9b78e25be5d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page