Hello, i have a gmail setup on gesior aac 2012 as follows:
BUT when i go onto my website and try to use the lost account page to send an email i get this error:
This is my line 107 in lostaccount.php:
Can anyone help? thanks
PHP:
# Emails Config
$config['site']['send_emails'] = true;
$config['site']['mail_address'] = "[email protected]";
$config['site']['smtp_enabled'] = true;
$config['site']['smtp_host'] = "ssl://smtp.gmail.com";
$config['site']['smtp_port'] = 465;
$config['site']['smtp_auth'] = true;
$config['site']['smtp_user'] = "[email protected]";
$config['site']['smtp_pass'] = "xxxxx";
BUT when i go onto my website and try to use the lost account page to send an email i get this error:
Code:
Fatal error: Uncaught Error: Call to undefined method Account::getName() in P:\xampp\htdocs\pages\lostaccount.php:107 Stack trace: #0 P:\xampp\htdocs\system\load.page.php(7): include() #1 P:\xampp\htdocs\index.php(37): include_once('P:\\xampp\\htdocs...') #2 {main} thrown in P:\xampp\htdocs\pages\lostaccount.php on line 107
This is my line 107 in lostaccount.php:
PHP:
<p>Account name: '.htmlspecialchars($account->getName()).'</p>
Can anyone help? thanks