837

Product support

Get help in the plugin support forum.

  • Added on Sep 26, 2025
  • Current version: 1.0.0
  • Platform Compatibility
    v4.x use latest
    v3.x use latest
    v2.x not tested
    v1.x not tested
  • Created by

Categories

Simple October CMS Mail plugin that allows you to send mail. The plugin is configured through code and does not clutter the administration area with it's own navigation panel.

October CMS Mail

1. Check config and configure

<?php

return [
    'sendingEnabled' => env('MAIL_SENDING_ENABLED', false)
];

2. Configure project enviroment

# MAIL
MAIL_SENDING_ENABLED=true

MAIL_DRIVER=
MAIL_HOST=
MAIL_PORT=
MAIL_ENCRYPTION=
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_FROM_ADDRESS=
MAIL_FROM_NAME="${APP_NAME}"

3. Configure default mail layout

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
    <style type="text/css" media="screen">
        {{ brandCss|raw }}
        {{ css|raw }}

        .container {
            width: 100%;
            height: 100%;

            background-color: #FFFFFF;
        }

        .content {
            width: 80%;

            padding: 2.5rem 4.5rem;
            margin: auto;

            background: linear-gradient(to left top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.8));
        }
    </style>

    <div class="container">
        <div class="content">
            {{ content|raw }}
        </div>
    </div>

</body>
</html>

4. Use MailService class

use Tober\Mail\Classes\Services\MailService;

MailService::send('example@gmail.com', 'parent.plugin::mail.template', ['name' => 'Example']);
1.0.0

First version of Tober.Mail

Sep 18, 2025