1 | <?php |
||
25 | class SmtpTransport extends Base implements MailTransportInterface |
||
26 | { |
||
27 | |||
28 | /** |
||
29 | * @var Smtp |
||
30 | */ |
||
31 | protected $smtpServer; |
||
32 | |||
33 | /** |
||
34 | * @readwrite |
||
35 | * @var array |
||
36 | */ |
||
37 | protected $options; |
||
38 | |||
39 | /** |
||
40 | * Gets the Zend SMTP service |
||
41 | * |
||
42 | * @return Smtp |
||
43 | */ |
||
44 | 4 | public function getSmtpServer() |
|
54 | |||
55 | /** |
||
56 | * Sets the Zend SMTP service |
||
57 | * |
||
58 | * @param Smtp $smtpServer |
||
59 | * |
||
60 | * @return SmtpTransport|$this|self |
||
61 | */ |
||
62 | 4 | public function setSmtpServer(Smtp $smtpServer) |
|
67 | |||
68 | /** |
||
69 | * Send a e-mail message |
||
70 | * |
||
71 | * @param MessageInterface $message |
||
72 | * |
||
73 | * @return MailTransportInterface |
||
74 | */ |
||
75 | 2 | public function send(MessageInterface $message) |
|
80 | |||
81 | /** |
||
82 | * @param MessageInterface $message |
||
83 | * |
||
84 | * @return ZendMessage |
||
85 | */ |
||
86 | 2 | protected function convert(MessageInterface $message) |
|
98 | } |