talocode-maillane
Gmail OAuth email API — send transactional emails from any hosting, no SMTP ports needed.
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
- @talocode/maillane - Node.js SDK
Links
- GitHub: https://github.com/talocode/maillane
- npm: https://www.npmjs.com/package/@talocode/maillane
- YouTube Tutorial: https://www.youtube.com/watch?v=eh7qa6XdNw4
- Talocode: https://talocode.site
License
MIT © Talocode
Metadata
Release files for talocode-maillane 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| talocode_maillane-0.1.1.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| talocode_maillane-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / talocode_maillane-0.1.1.tar.gz
| Download URL | talocode_maillane-0.1.1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74191e89fcba68c913816e7a2feef6364f44733830b62635aef4556a74440a53
|
|
BLAKE2b-256 checksum How to use checksums |
32341aebc56189b22657a1e076629bbcc5e862d5a13c46c7e458189cf1f8069a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / talocode_maillane-0.1.1-py3-none-any.whl
| Download URL | talocode_maillane-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53c81b5009b630a9b6a43d55dd0b8954864e34414f363b40734975574ad5d577
|
|
BLAKE2b-256 checksum How to use checksums |
09eec9ae4b77ab7466010c69b992770e6d5f80ca7468b6ab0abae9b78e25be5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|