⚡ Ready for Kirby 4!
You just set up the new server and deployed your Kirby application and would like to check whether your application is ready to send emails? Just run one simple command from the CLI and get a detailed log of what is happening (or not).
Important
Requires at least Kirby 4.0 and PHP 8.0
Just run this command from the terminal:
$ kirby email --from [email protected] --to [email protected]
# … (SMTP debugging output)
$ Your email was sent successfully!
Every argument has to be passed to the command:
argument | description |
---|---|
from* | The sender email address |
to* | The recipient email address |
subject | The email subject |
body | The email body |
* required arguments
Install this plugin via Composer:
composer require presprog/kirby-email-check-plugin
Or download the ZIP file from GitHub and unpack it to site/plugins/email-check
Important
This plugin requires the Kirby CLI to be installed. It will not be installed automatically, though. Please follow their installation guide.
The Kirby CLI is not aware of your current environment: it loads the host-based config files (e.g. config.example.org.php
) depending on the current domain. On the CLI there is no such thing. In order to correctly load the right transport settings, you must use Kirbys env.php
to tell the system, which URL is currently in use. Follow the guide to set this up.
// in /site/config/env.php
return [
'url' => 'https://example.com',
];
- Handle presets
- Improve host-based config file handling
MIT License Copyright © 2024 Present Progressive
Made by Present Progressive for the Kirby community.