PostgreSQL Integration
Schedule any PostgreSQL query to run on a cadence and email the results as a formatted Excel file. Your stakeholders get fresh data without logging into anything.
Setup
Enter your host, port, database name, and credentials. Query2Mail encrypts them with AES-256 immediately — they're never stored in plaintext.
Paste any SELECT query. Use any PostgreSQL feature — window functions, CTEs, JSON aggregation. If it runs in psql, it runs here.
Choose daily, weekly, or monthly. Add the email addresses of anyone who should receive the report. They need no account.
At the scheduled time, Query2Mail runs your query against your PostgreSQL instance, formats the results into a clean Excel file, and sends it automatically.
-- Example: weekly revenue by region
SELECT region, SUM(revenue) AS total_revenue, COUNT(*) AS orders
FROM sales
WHERE created_at >= date_trunc('week', now())
GROUP BY region
ORDER BY total_revenue DESC;
→ Runs every Monday 8:00 AM → Excel emailed to finance@company.com
Use cases
Free to start. No credit card required.
Connect your database →