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