The official PHP client for the Groundmail transactional email API.
Send password resets, receipts and alerts in a few lines of PHP.
Docs · Get a free account · groundmail.dev
composer require groundmail/groundmail<?php
use Groundmail\Client;
$tx = new Client(getenv('GROUNDMAIL_API_KEY'));
$result = $tx->emails->send([
'from' => 'you@yourdomain.com',
'to' => 'user@example.com',
'subject' => 'Hello',
'html' => '<p>It works.</p>',
]);
echo $result['id'], ' ', $result['status'], PHP_EOL;Using a framework? There's a Laravel package and a Symfony Mailer transport.
Found a bug or want something added? Open an issue. This code is published here on each release, so we port fixes rather than merging pull requests directly.
- Our own mail servers and IP space. Your password resets and receipts don't share a pool with bulk marketing senders.
- Transactional email only. No newsletters or cold outreach on the platform, which keeps the sending reputation clean.
- Start free. Free covers 3,000 emails a month. After that it's pay as you go: $0.70 per 1,000, less as you grow. Pricing
- Built for code and for agents. REST API, SMTP, SDKs for Node, Python, Go, PHP and Ruby, a CLI, and an MCP server for Claude, ChatGPT and Cursor.
| Use | Package |
|---|---|
| Node.js / TypeScript | groundmail on npm |
| Python (Django), Go, Ruby (Rails Action Mailer) | Groundmail/groundmail-sdks |
| PHP | Groundmail/groundmail-php |
| Laravel | Groundmail/groundmail-laravel |
| Symfony Mailer | Groundmail/groundmail-symfony-mailer |
| Nodemailer | Groundmail/groundmail-nodemailer |
| NestJS | Groundmail/nestjs-groundmail |
| Strapi | Groundmail/strapi-provider-email-groundmail |
| Medusa | Groundmail/medusa-notification-groundmail |
| AdonisJS | Groundmail/adonisjs-groundmail |
| Phoenix (Swoosh) | Groundmail/swoosh_groundmail |
| CLI | groundmail-cli on npm |
| MCP server (Claude, ChatGPT, Cursor) | Groundmail/groundmail-mcp |
| Agent skills and Claude Code plugin | Groundmail/groundmail-skills |
| Email templates (React Email, MJML, HTML) | Groundmail/email-templates |
Website · Docs · Pricing · Sign up free