iPédiatre
 Tout Classes Fichiers Fonctions Variables
iPMailTransport.php
Aller à la documentation de ce fichier.
1 <?php
6 {
7  private $transport;
8 
9  public function __construct(eZINI $ini)
10  {
11  $host = $ini->variable( 'MailSettings', 'TransportServer' );
12  $port = $ini->variable( 'MailSettings', 'TransportPort' );
13 
14  $this->transport = new ezcMailSmtpTransport($host, null, null, $port);
15  }
16 
17  public function send(ezcMail $mail)
18  {
19  $this->transport->send($mail);
20  }
21 }