MailMessageInterface.php 757 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 Message interface
  9. *
  10. * @api
  11. * @since 102.0.0
  12. */
  13. interface MailMessageInterface extends MessageInterface
  14. {
  15. /**
  16. * Set mail message body in HTML format.
  17. *
  18. * @param string $html
  19. * @return $this
  20. * @since 102.0.0
  21. */
  22. public function setBodyHtml($html);
  23. /**
  24. * Set mail message body in text format.
  25. *
  26. * @param string $text
  27. * @return $this
  28. * @since 102.0.0
  29. */
  30. public function setBodyText($text);
  31. /**
  32. * Get message source code.
  33. *
  34. * @return string
  35. * @since 102.0.0
  36. */
  37. public function getRawMessage();
  38. }