cannot read an undeclared column “smtp_port

I am trying to get the Login page of my application but after putting username and password, error Cannot read an undeclared column ‘smtp_port’ is being displayed. not able to figure out the reason behind this error. Need urgent help!
Thank you in advance :slight_smile:

This is code segment of Presenter class
UserPresenter.php

$this->mailer = new Nette\Mail\SmtpMailer(array(
‘host’ ⇒ $mailSetting->smtp_server,
‘port’ ⇒ $mailSetting->smtp_port,
‘username’ ⇒ $mailSetting->from_mail,
‘password’ ⇒ $mailSetting->password,
‘secure’ ⇒ $mailSetting->secure_connection,
));

SmtpMailer.php

public function __construct(array $options = array())
{
if (isset($options[‘host’])) {
$this->host = $options[‘host’];
$this->port = isset($options[‘port’]) ? (int) $options[‘port’] : NULL;
} else {
$this->host = ini_get(‘SMTP’);
$this->port = (int) ini_get(‘smtp_port’);
}
$this->username = isset($options[‘username’]) ? $options[‘username’] : ‘’;
$this->password = isset($options[‘password’]) ? $options[‘password’] : ‘’;
$this->secure = isset($options[‘secure’]) ? $options[‘secure’] : ‘’;
$this->timeout = isset($options[‘timeout’]) ? (int) $options[‘timeout’] : 20;
if (!$this->port) {
$this->port = $this->secure === ‘ssl’ ? 465 : 25;
}
$this->persistent = !empty($options[‘persistent’]);
}

This is a German forum, so please write in German

However, your question is a PHP problem. Sending E-Mails through PHP using SMTP has nothing to do with PostgreSQL.

Please ask this in a PHP forum.

Dieses Thema wurde automatisch 60 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Antworten mehr erlaubt.