MailInvoker.php 766B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /*
  3. * This file is part of SwiftMailer.
  4. * (c) 2004-2009 Chris Corbyn
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. /**
  10. * This interface intercepts calls to the mail() function.
  11. *
  12. * @package Swift
  13. * @subpackage Transport
  14. * @author Chris Corbyn
  15. */
  16. interface Swift_Transport_MailInvoker
  17. {
  18. /**
  19. * Send mail via the mail() function.
  20. *
  21. * This method takes the same arguments as PHP mail().
  22. *
  23. * @param string $to
  24. * @param string $subject
  25. * @param string $body
  26. * @param string $headers
  27. * @param string $extraParams
  28. *
  29. * @return boolean
  30. */
  31. public function mail($to, $subject, $body, $headers = null, $extraParams = null);
  32. }