There are several additional 'custom' notification channels available here: https://github.com/laravel-notification-channels
Could use those as a guide to implement one for sendinblue.. and maybe contribute it back to the community :)
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi!
Is there any good example tutorial how to build new notification driver please? We use sendinblue.com for our transactional emails it works very well and it is really well priced.
They provide own class mailin.php but I'm not sure how to add it to new laravel in order to be able to reuse it easily.
The code used for sending is here:
require('../mailin.php');
$mailin = new Mailin("https://api.sendinblue.com/v2.0","your access key");
$data = array( "id" => 2,
"to" => "[email protected]|[email protected]",
"cc" => "[email protected]'",
"bcc" => "[email protected]",
"replyto" => "[email protected]",
"attr" => array("EXPEDITEUR"=>"His name","SUBJECT"=>"This is my subject"),
"attachment_url" => "",
"attachment" => array("myfilename.pdf" => "your_pdf_files_base64_encoded_chunk_data"),
"headers" => array("Content-Type"=> "text/html;charset=iso-8859-1", "X-param1"=> "value1", "X-param2"=> "value2", "X-Mailin-custom"=>"my custom value","X-Mailin-tag"=>"my tag value")
);
Source is here: https://apidocs.sendinblue.com/template/#1
This example sends a template with set of params just like a slack notification with and array of params.
Cheers!
There are several additional 'custom' notification channels available here: https://github.com/laravel-notification-channels
Could use those as a guide to implement one for sendinblue.. and maybe contribute it back to the community :)
Please or to participate in this conversation.