File notification program

I have a client that has an in house FTP server (Filezilla). We would like to have a program that will notify a specified user via Email that they have a file awaiting download. We would need to be able to create a custom message of up to 1000 characters. Each folder would be assigned a different user. Example D:\FTProot\Jsmith an Email would be sent to Jsmith's Email address when a file is added to his home directory.
Any suggestions
Ollie BrancheAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

For now, I'm thinking a simple VBscript. Is that sufficient for you?
Have some things ready (list of folders, email addresses)
Run through the folders, and when a file is found, email the address.

Of course it means, the next run, it will email the same message again, until the user removes the file
Is that doable?
Ollie BrancheAuthor Commented:
That sounds like it would work. I don;t have any scripting experience.
Would it be something we could edit easily?
Here's a script to get you started:
Set objFSO = CreateObject("Scripting.FileSystemObject")
folder_array = Array("C:\Windows\*","c:\temp2*")
smtpserver = ""

for each item in folder_array
	folder = Split(item,"*")(0)
	email = Split(item,"*")(1)
	if objFSO.GetFolder(folder).Files.Count > 0 then
		SendMail email, email
	end if

Sub SendMail(TheName, TheAddress) 
Dim objMessage, Rcpt 

Rcpt = Chr(34) & TheName & Chr(34) & "<" & TheAddress & ">" 
Set objMessage = CreateObject("CDO.Message") 
objMessage.Subject = "New file received" 
objMessage.From = """file received alert"" <>" 
objMessage.To = Rcpt 
objMessage.HTMLBody = "New file received alert" 

objMessage.Configuration.Fields.Item("") = 2 

'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item("") = smtpserver

'Server port (typically 25)
objMessage.Configuration.Fields.Item("") = 25 



End Sub

Open in new window

Requires proper CDO installation for succesful email sending (see:
If CDO is not compatible with your system, replace with external programming of your own choice.

See this line: folder_array = Array("C:\Windows\*","c:\temp2*")
Fill in your own array, but KEEP this format "foldername*emailaddress", add as many as you like, separated by comma's
Each folder is tested, and if one or more file is detected,  and the email is used to send an alert

See this line: smtpserver = ""
Has to be a working SMTP server that's configured to accept mail from that computer (usually for spam prevention, it's not allowed to send mail through mail servers this way)

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
Ollie BrancheAuthor Commented:
Kimputer, thank you for your update. I have been in the process of moving. I will test this script out this weekend.
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
File Sharing Software

From novice to tech pro — start learning today.