Page 1 of 1

Trouble with space in long filenames

Posted: Thu Feb 17, 2011 8:42 am
by sbrattla
Hi,

Whenever i attach files with long filenames, SwiftMailer seems to encode the filename in a way which make any space character appear as %20. Is there a way to
avoid this, as it does not look too nice?

I'm using SwiftMailer 4.

Re: Trouble with space in long filenames

Posted: Thu Feb 17, 2011 9:32 am
by John Cartwright
File names need to be encoded in the mail transport. My suggestion would be to never allow filenames with spaces, or replace the spaces with dashes or underscores.