We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24719
    • 194 Posts
    When a user is sent an email from eForm 1.4.4.2, they get sent 2 messages, one containing the message as intended, and one containing two single quotes ’’.

    i’m calling eform with the following call:

    [!STFURL!] [!eForm? &sendirect=`1` &subject=`A friend has sent you details of a property on PurpleFrogProperty.com` &thankyou=`STFemailOK` &formid=`STFform` &tpl=`STFform` &report=`STFemail` &eFormOnBeforeFormParse=`STFURL` &to=`[+email+]`!]


    the STFURL snippet doesn’t do much, just:

    <?php
    if (!function_exists(STFURL))
    {
        function STFURL(&$fields, &$templates)
        {
           global $modx;
           $fields['url'] = $_SERVER['HTTP_REFERER'];
           return true;
       } 
    }
    ?>


    has anyone else found this?
      • 30223
      • 1,010 Posts
      Yes this has been a problem. See here for a solution.
        • 24719
        • 194 Posts
        brilliant, thanks.