Home Forums Bug Reports SwithMail Bug Reports Parameter in body text file

Viewing 2 reply threads
  • Author
    • #424 Score: 0

      Great application, so good work on that! I did discover that the use of a parameter (%Param1%) does not work when the body text file is being used. It does work without a set body text file but from a managing perspective with multiple xml files, a single body text file would be best. The HTML tags do work.

      • This topic was modified 2 years, 3 months ago by thaw04.
    • #427 Score: 0
      2 pts


      I’ve had another user mention using Params in a body text file. I’ll take a look and see what it would take. I’m sure it’s doable.

    • #428 Score: 0
      2 pts

      Hello – So, I just tested this out, and it worked for me.

      Here’s my CLI string:
      /x "c:\Test\SwithMailSettings.xml" /btxt "c:\Test\txtBody.txt" /p1 "Name Here" /p2 "Product Here" /s

      Here’s my text file (c:\test\txtBody.txt):

      Dear %Param1%,
      Thank you for purchasing %Param2%!
      Sent: %now%

      And here’s the resulted email:

      Dear Name Here,
      Thank you for purchasing Product Here!
      Sent: 9/5/2018 8:09:50 AM

      Now, all of that said, I did find an issue with TESTING through the GUI where it wouldn’t replace the strings, but doing it through the CLI would. I’ve pushed an update today ( that will address this issue and another issue that was reported as well (with High Priority headers).

      You can grab the new version here: https://www.tbare.com/software/swithmail/

      • This reply was modified 2 years, 3 months ago by tbare.
Viewing 2 reply threads
  • You must be logged in to reply to this topic.