Saving file with illegal characters

I have to save the mail and name it as mail.subject. Problem appears when in subject are characters like : * ? <> |" . I could do string.Replace(every illegal character,“”) but maybe there is like a better way to do this. Thanks for help

Hi @logan.capp !
Sure, here is a clue :slight_smile:

1 Like