If you want to send attachments with special characters in their file names, you will need to make sure that you encode the file name first, e.g., using encodeURI()
. Here's an example of a standard outbound Unifi attachment stream script with the correct escaping in place.