| 1 | <?php |
||
| 9 | class SocketConnector implements SMTPConnector |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string SMTP hostname |
||
| 13 | */ |
||
| 14 | protected $host; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var int SMTP server port-number |
||
| 18 | */ |
||
| 19 | protected $port; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $host SMTP host-name |
||
| 23 | * @param int $port SMTP port-number |
||
| 24 | */ |
||
| 25 | 2 | public function __construct($host, $port = 25) |
|
| 30 | |||
| 31 | 2 | public function connect($client_domain) |
|
| 45 | } |
||
| 46 |