TransportInterface.php 569 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Mail;
  7. /**
  8. * Mail Transport interface
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface TransportInterface
  14. {
  15. /**
  16. * Send a mail using this transport
  17. *
  18. * @return void
  19. * @throws \Magento\Framework\Exception\MailException
  20. */
  21. public function sendMessage();
  22. /**
  23. * Get message
  24. *
  25. * @return \Magento\Framework\Mail\MessageInterface
  26. * @since 101.0.0
  27. */
  28. public function getMessage();
  29. }