DavidS (Customer) asked a question.

Do-More EMAIL, multiple To: recipients

Using the EMAIL in the Do-More PLC, I would like to have multiple addresses in the To: field. I am using string variables for the addresses. If I just use EmailAddr0 (a string variable we created) it works fine. If we try EmailAddr0,EmailAddr1, we get the 'red' dot syntax error alert. We have tried different permutations with , ; spaces, etc, with no luck.

Any help on the syntax for multipule To's using string variables would be great.

Thanks

David


  • HOST_franji1 (HOST Engineering)

    You need to put the list into a single string, probably an SL. Those parameters take a single string literal or a single string element. Hence, use STRPRINT to SL0 containing EMailAddr0 "," EMailAddr1 "," ... then use SL0 in your To: field

     

    SL's can be 256 long, but SS's can only be 64. If you need something larger than 256, create a heap item that is a String with length up to 1024, e.g. EMailAddrList, and use that as the destination of your STRPRINT instruction and EMAIL To: field.

    Expand Post
  • DavidS (Customer)

    Thanks! Will give it a go!