Hi Markus,

thanks, this works!

Greets
Roman

Am 18.10.2013 11:32, schrieb Markus Schall - Bergfreunde.de:
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 <mailto:[email protected]>
    *To:*
        [email protected]
    <mailto:[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




BERGFREUNDE GmbH

Markus Schall

Bahnhofstrae 26
Tor D, Eingang 17
72138 Kirchentellinsfurt

Telefon: 07121 7012-103
Fax: 07121 7012-291
Email: [email protected]

Web: www.bergfreunde.de <http://www.bergfreunde.de>

Sitz der Gesellschaft: Kirchentellinsfurt
Amtsgericht Stuttgart, HRB 382746
Geschftsfhrer: Martin Theben, Ronny Hhn, Matthias Gebhard



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



--
Dipl.Winf. (FH) Roman Allenstein
Software-Developer
Spark 5 GmbH
Rheinstraße 97
64295 Darmstadt

Fon: +49-6151-8508-048
Fax: +49-6151-8508-111

Mail: [email protected]
Web: http://www.spark5.de
--

Geschäftsführer:
Dipl. Designer Till Middelhauve
Dipl. Informatiker Witold Wegner
Amtsgericht Darmstadt, HRB 7809

Diese E-Mail könnte vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to