Esempio 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);
 }
Esempio n. 2
0
 function testGetPluginInfo()
 {
     $plugin = new IMipPlugin('*****@*****.**');
     $this->assertEquals('imip', $plugin->getPluginInfo()['name']);
 }
Esempio 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;
 }
Esempio n. 4
0
 /**
  * Creates the email handler.
  *
  * @param IMailer $mailer
  */
 function __construct(IMailer $mailer, ILogger $logger)
 {
     parent::__construct('');
     $this->mailer = $mailer;
     $this->logger = $logger;
 }