+1 vote

SafeFileName seems to be limited to 60 characters, can you confirm that? Is there an other way to get the name of the attachments?

by

1 Answer

0 votes
 
Best answer

No, there is no such limit.

SafeFileName modifies actual file name thou:
It removes folders and incorrect characters, such as stars '*' or
question marks '?', which can not be used to name a file on most systems.

You can use MimeStructure.FileName to get the exact file name as it was
specified in an email.

Consider turning on logging to see if the server sends correct data.

by (301k points)
...