A PHP component/library.

v0.10.0 2024-09-17 14:21 UTC

This package is auto-updated.

Last update: 2024-09-17 14:22:48 UTC


README

A PHP component/library for async email sending.

Setup

Usage

Adding email to sending queue

  1. Create a \WebServCo\Mail\DataTransfer\MailItem DTO.

  2. Store it: WebServCo\Mail\Contract\Service\Storage\MailItemStorageInterface.storeMailItem(MailItem $mailItem): int.

Sending emails

  • Use a scheduled job;
  • Process: MailingProcessorInterface.process();
  • Get report: MailingProcessorInterface.getItemsProcessingReport();

TODO

  • Add support for attachments