Ejemplo n.º 1
0
 /**
  * Constructor. Sets basic default values based on preferences.
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->setSenderEmailAddress(Symphony::Configuration()->get('from_address', 'email_smtp') ? Symphony::Configuration()->get('from_address', 'email_smtp') : 'noreply@' . HTTP_HOST);
     $this->setSenderName(Symphony::Configuration()->get('from_name', 'email_smtp') ? Symphony::Configuration()->get('from_name', 'email_smtp') : 'Symphony');
     $this->setSecure(Symphony::Configuration()->get('secure', 'email_smtp'));
     $this->setHost(Symphony::Configuration()->get('host', 'email_smtp'));
     $this->setPort(Symphony::Configuration()->get('port', 'email_smtp'));
     if (Symphony::Configuration()->get('auth', 'email_smtp') == 1) {
         $this->setAuth(true);
         $this->setUser(Symphony::Configuration()->get('username', 'email_smtp'));
         $this->setPass(Symphony::Configuration()->get('password', 'email_smtp'));
     }
 }
Ejemplo n.º 2
0
 /**
  * Constructor. Sets basic default values based on preferences.
  *
  * @throws EmailValidationException
  */
 public function __construct()
 {
     parent::__construct();
     $this->setConfiguration(Symphony::Configuration()->get('email_smtp'));
 }
Ejemplo n.º 3
0
 /**
  * Constructor. Sets basic default values based on preferences.
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->setSenderEmailAddress(Symphony::Configuration()->get('from_address', 'email_sendmail') ? Symphony::Configuration()->get('from_address', 'email_sendmail') : 'noreply@' . HTTP_HOST);
     $this->setSenderName(Symphony::Configuration()->get('from_name', 'email_sendmail') ? Symphony::Configuration()->get('from_name', 'email_sendmail') : 'Symphony');
 }