pulli/emate

Wrapper for MailMate's emate CLI

Fund package maintenance!
the-pulli

v1.0.5 2025-03-27 18:57 UTC

This package is auto-updated.

Last update: 2025-03-27 18:59:46 UTC


README

Latest Version on Packagist Tests Total Downloads

Installation

You can install the package via composer:

composer require pulli/emate

Usage

// First symlink emate, if not already done so
\Pulli\Emate\Emate::symlink();

// The values below are also the default values.
// No parameter in the array is actually required.
// Just set the one's you need.
$emate = \Pulli\Emate\Emate::from([
    'body' => '',
    'to' => [], // array of email addresses or Symfony\Component\Mime\Address objects or string separated by newline with email addresses
    'from' => '', // email address or Symfony\Component\Mime\Address object
    'cc' => [], // array of email addresses or Symfony\Component\Mime\Address objects or string separated by newline with email addresses
    'bcc' => [], // array of email addresses or Symfony\Component\Mime\Address objects or string separated by newline with email addresses
    'files' => [], // array of file paths or string separated by newline with file paths
    'reply_to' => '', // email address or Symfony\Component\Mime\Address object
    'markdown' => false, // boolean
    'encrypt' => false, // boolean
    'sign' => false, // boolean
    'send_now' => false, // boolean
    'encryption_mode' => 'openpgp', // string: mime or openpgp
])->mail();

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.