oh-sky / cakephp3-base64-email
CakePHP3 extension to encode the message body with Base64.
Installs: 25
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
pkg:composer/oh-sky/cakephp3-base64-email
Requires
- cakephp/cakephp: 3.1.*
 
Requires (Dev)
- phpunit/phpunit: 4.*
 
This package is not auto-updated.
Last update: 2025-10-26 00:45:35 UTC
README
CakePHP3 extension to encode the message body with Base64.
Requirements
- CakePHP 3.1.x
 
Installation
composer require oh-sky/cakephp3-base64-email
Example
<?php
namespace App\Shell;
use Cake\Console\Shell;
use OhSky\Cakephp3Base64Email;
class MailShell extends Shell
{
    public function main()
    {
        $email = new Cakephp3Base64Email();
        $mail = $email->from('from@example.com')
                      ->to('to@example.com')
                      ->subject('subject')
                      ->send('Hello');
    }
}
Test
git clone git@github.com:oh-sky/cakephp3-base64-email.git cakephp3-base64-email
cd cakephp3-base64-email
composer install --dev
./vendor/bin/phpunit --bootstrap vendor/autoload.php tests