A PHP component/library.

v0.12.0 2024-10-15 09:17 UTC

This package is auto-updated.

Last update: 2024-11-15 09:28:14 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;
  • Solve Phan "PhanUndeclaredType*";