Hi, the problem is that smarty only includes admin-templates in the OXID backend. You have to add the template manually to the templates array of the smarty object or you could copy the email template to the admin-views folder.
Mit freundlichen Grüßen aus Verl Kai Neuwerth Technik ------------------------------------------------- digidesk - media solutions Inh. Marco Müller Kapellenweg 76 D-33415 Verl ------------------------------------------------- Telefon: +4952469099110 Telefax: +4952469099120 E-Mail: [email protected] Web : http://www.digidesk.de/ (www.digidesk.de) ------------------------------------------------- NEU: 30 TAGE KOSTENLOS TESTEN! - WARENKORBABBRECHER- DAS MODUL FÜR IHREN OXID SHOP Machen Sie aus stehengelassenen Warenkörben Käufer. Weitere Informationen finden Sie hier: http://www.digidesk.de/Produkte/Module-Schnittstellen/Modul-Warenkorbabbrecher.html -----Ursprüngliche Daten----- Datum: 18.10.2013 11:18:44 Von: Roman Allenstein <[email protected]> An: <[email protected]> Betreff: [oxid-dev-general] Sending forgot-password-mail via backend - Smarty cant find template Vorgang: T-CK4IWTM69I-70 > 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 _______________________________________________ dev-general mailing list [email protected] http://dir.gmane.org/gmane.comp.php.oxid.general
