Hi guy :-)

Smarty try to find the template in application/views/admin/tpl if you send it 
from backend.

Try this:

public function sendPasswordReminder()
{
$oEmail = new oxEmail();
$oEmail->setShop(oxRegistry::getConfig()->getActiveShop());
$this->getConfig()->setAdminMode( false );
$oEmail->sendForgotPwdEmail($this->getUser()->getFieldData('oxusername'));
$this->getConfig()->setAdminMode( true );
}

Greets,
Markus

 Original Message processed by David.fx12  
[oxid-dev-general] Sending forgot-password-mail via backend - Smarty cant find 
template (18-Okt-2013 11:18)
From:   Roman Allenstein
To:[email protected]


Hi boys and girls ;-)

I am trying to send the "forgot password"-mail via the backend. I have 
implemented a button and a function to my extended User_Main Controller.

public function sendPasswordReminder()
{
$oEmail = new oxEmail();
$oEmail->setShop(oxRegistry::getConfig()->getActiveShop());
$oEmail->sendForgotPwdEmail($this->getUser()
->getFieldData('oxusername'));
}

But if the mail is sent, it tells me that smarty cant find the template. 
The mails contains:

Warning: Smarty error: unable to read resource: 
"email/html/forgotpwd.tpl" in 
/home/3m.dev/public_html/core/smarty/Smarty.class.php on line 1093


If i try sending the forgot-pw-mail via frontend, everything looks fine.

Please advise! :)
-- 
Greets Roman
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

<<image001[1].gif>>

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to