Trouble with space in long filenames

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
sbrattla
Forum Newbie
Posts: 3
Joined: Thu Jul 10, 2008 5:21 am

Trouble with space in long filenames

Post 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.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Trouble with space in long filenames

Post 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.
Post Reply