oh-sky/cakephp3-base64-email

CakePHP3 extension to encode the message body with Base64.

1.0.0 2016-02-08 10:55 UTC

This package is not auto-updated.

Last update: 2024-04-13 15:56:25 UTC


README

CakePHP3 extension to encode the message body with Base64.

Build Status

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