laravel maintained by groundmail
Description
Laravel integration for the Groundmail transactional email API
Author
Groundmail
Last update
2026/10/17 03:31
(dev-main)
License
Downloads
1
Tags
Groundmail Laravel package
Laravel Mail transport and integration for the Groundmail transactional email API.
composer require groundmail/laravel
Set in .env:
GROUNDMAIL_API_KEY=gm_your_key_here
MAIL_MAILER=groundmail
Add to config/mail.php:
'groundmail' => [
'transport' => 'groundmail',
],
Then send as usual:
Mail::to($user)->send(new WelcomeMail($user));
Optional: use the Facade / PHP client for direct API calls:
use Groundmail\Laravel\Facades\Groundmail;
Groundmail::client()->emails->send([
'from' => 'you@yourdomain.com',
'to' => 'user@example.com',
'subject' => 'Hello',
'html' => '<p>It works.</p>',
]);