vendor/symfony/mailer/MailerInterface.php line 29

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony package.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Symfony\Component\Mailer;
  11. use Symfony\Component\Mailer\Exception\TransportExceptionInterface;
  12. use Symfony\Component\Mime\RawMessage;
  13. /**
  14.  * Interface for mailers able to send emails synchronous and/or asynchronous.
  15.  *
  16.  * Implementations must support synchronous and asynchronous sending.
  17.  *
  18.  * @author Fabien Potencier <fabien@symfony.com>
  19.  */
  20. interface MailerInterface
  21. {
  22.     /**
  23.      * @throws TransportExceptionInterface
  24.      */
  25.     public function send(RawMessage $messageEnvelope $envelope null): void;
  26. }