Esempio n. 1
0
 /**
  * Get the name of bridge library which will be used as the driver.
  *
  * @param string $mailer
  *
  * @return string
  */
 protected static function getLibrary($mailer)
 {
     return Mailer::getConfig()->get('Bridge.' . $mailer, self::$library);
 }
Esempio n. 2
0
 public function testConfigContent()
 {
     $this->assertSame('nikola@localhost', Mailer::getConfig()->Default->Sender->Email);
     $this->assertSame('\\Webiny\\Component\\Mailer\\Bridge\\SwiftMailer\\SwiftMailer', Mailer::getConfig()->Bridge->Default);
 }