IMessageSend.php 811 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Mail\Provider;
  8. /**
  9. * Mail Message Send Interface
  10. *
  11. * This interface is the required set of methods and functionality used to extend IService with message sending functionality
  12. *
  13. * @since 30.0.0
  14. *
  15. */
  16. interface IMessageSend {
  17. /**
  18. * send an outbound message
  19. *
  20. * @since 30.0.0
  21. *
  22. * @param IMessage $message mail message object with all required parameters to send a message
  23. * @param array $options array of options reserved for future use
  24. *
  25. * @throws \OCP\Mail\Provider\Exception\SendException on failure, check message for reason
  26. */
  27. public function sendMessage(IMessage $message, array $options = []): void;
  28. }