• Resolved jlmunn

    (@jlmunn)


    We recently updated to cformsII 14.14 and when we did, we lost the ability to call the {ID} variable in the admin messages. We were using this as an internal tracking number (we include it in the body of the message as well as the subject line). Is it possible to add this variable back for the admin messaging (not the tracking aspect, just the ability to call a unique ID for the submission). We use it to help identify the individual communication when we have multiple similar communications.

    Thank you in advance for your consideration,

    Jennifer

Viewing 1 replies (of 1 total)
  • Plugin Author bgermann

    (@bgermann)

    The reason for dropping {ID} is that the old tracking DB is removed. I could have used a random ID instead but that would have changed the semantics.

    I suggest you do one of the following:

    1. Use the emails’ Message-ID.
    2. Use a combination of {Date} and {Time}
    3. Use an arbitrary string (even “{ID}”) that you replace in a cforms2_admin_email_filter with something. Example code to use in a plugin:

    add_filter ( 'cforms2_admin_email_filter', function($email_text) {
      replacement = mt_rand();
      return str_replace('{ID}', $replacement, $email_text);
    });
Viewing 1 replies (of 1 total)
  • The topic ‘Missing {ID} variable for email messages’ is closed to new replies.