SSIS DYnamic Folder Name and SMTP Link

I have an SSIS that works except for one small piece.

I build CSV files with dynamic folder names and file names all tied to date and time.

I send an email with a link to the new file

The folder name is set as a variable and "updated" in the process.

Here's the issue.
The folder name is on a shared folder on the network and it has spaces in it.

If I handle that in the path with %20 then the folder is created incorrectly...

If I just leave the space in the folder name then the LINK is broken at the space.

Any ideas?
Is there a way to send an HTML Link in the SMTP Connection?

Its the strFolderName user variable that's the issue below

Larry Bristersr. DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brendt HessSenior DBACommented:
You can send HTML mail from within an SSIS package, but it uses a script task to do this (which you can see in This article on  

You also have the option of reformatting the link string for two different uses.  For folder creation, leave the spaces in the expression.  For setting the link in the email, create a different expression that replaces the spaces with %20, so the link sends and functions correctly.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Larry Bristersr. DeveloperAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2005

From novice to tech pro — start learning today.