pulli / emate
Wrapper for MailMate's emate CLI
Fund package maintenance!
the-pulli
Requires
- php: ^8.2
- illuminate/collections: ^10.0|^11.0|^12.0
- symfony/mime: ^7.0
Requires (Dev)
- egulias/email-validator: ^4.0
- laravel/pint: ^1.0
- pestphp/pest: ^3.0
- spatie/ray: ^1.28
README
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.