Exemplo n.º 1
0
 /**
  * Set up the configuration.
  *
  * @param  Configuration  $configuration    Configuration.
  * @return void
  */
 function __construct($smtpHost, $smtpPort, $smtpUser, $smtpPass)
 {
     $this->smtpHost = $smtpHost;
     $this->smtpPort = $smtpPort;
     $this->smtpUser = $smtpUser;
     $this->smtpPass = $smtpPass;
     $uselessEmail = "*****@*****.**";
     parent::__construct($uselessEmail);
 }
Exemplo n.º 2
0
 function testGetPluginInfo()
 {
     $plugin = new IMipPlugin('*****@*****.**');
     $this->assertEquals('imip', $plugin->getPluginInfo()['name']);
 }
Exemplo n.º 3
0
 /**
  * Set up the configuration.
  *
  * @param  Configuration  $configuration    Configuration.
  * @return void
  */
 function __construct(Configuration $configuration)
 {
     parent::__construct($configuration->mail->username);
     $this->configuration = $configuration;
 }
Exemplo n.º 4
0
 /**
  * Creates the email handler.
  *
  * @param IMailer $mailer
  */
 function __construct(IMailer $mailer, ILogger $logger)
 {
     parent::__construct('');
     $this->mailer = $mailer;
     $this->logger = $logger;
 }