Hello Kirby team, I have a new plugin is available and it’s called Kirby Courier.
Kirby Courier offers a convenient and painless solution for creating emails tailored for your Kirby website.
With Kirby Courier, you can streamline the process of email design and implementation for your site.
I think this plugin could be a must for the most common use of transactional emails for Kirby.
You can create emails like this in just seconds!
Hello, I’m trying to use the plugin to send a Notification message but I get the following error:
Error Class “Beebmx\\KirbyCourier\\Console\\MakeMailMessage” not found
Here is the code (copied from the documentation):
use Beebmx\\KirbyCourier\\Notification\\Message;
courierSendNot();
function courierSendNot()
{
(new Message)
->to('xxxxxx@gmail.com')
->greeting('Hello friend!')
->line('Welcome to Kirby Courier')
->line('You can add more lines before an action')
->lines(\['Multiple line 01', 'Multiple line 02'\])
->lineIf($someCondition === true, 'You can add more lines before an action')
->linesIf($someCondition === false, \['Line 03', 'Line 04'\])
->success() // To set the action button as successful
->error() // To set the action button as an error
->action('Action button', 'https://beeb.mx')
->line('You can add lines after an action')
->salutation('Good bye!')
->send();
}
Are you using composer to install the package?
The implementation is in a controller or any other location?
That’s your current implementation, because it’ has all the options, and not necessarily a right way to send an email.