Posted July 6, 201113 yr I was wondering if someone could guide me on setting up an automated email for when i file is loaded to specific directory an email or notification is automaticaly sent to a selected group of users. Ive read a little bit of info on using C# visual studio 2008. heres an example to clarify Ftp directory (123.45.67.0.0/Example) Upload :example_file.xls Sample_City.dwf Ftp: Upload Complete Ftp protocol: Automated email sent To : John_Doe@My-email.com Cc: Mary_Smith@My-email.comSteve_Bass@My-email.comJohn_Ash@My-email.com Subject: Job example_file.xls and Sample_City.dwf are uploaded to directory and awaiting your completion. Ive read of a couple third party software but havent looked into any to see how difficult the transfer from my current Windows server 2008 R2 x64 using FTP IIS 7.5 thats built into windows to say WS_FTP pro . I would like to stay with built in Windows Server applications and just learning how to write code. Still a noob at this so please take it easy. I'm sorry if this is crude example please feel free to comment or ask questions.
July 7, 201113 yr There are many ways to do this. You can use .NET or PowerShell to retrieve the last modified file, save the result in a file and in the next run of the program, you still retrieve the last modified file and you compare result with the file. You can schedule this task every minute. If not, you can read the FTP LOG (again, every minute) and look for "[create]" keyword. If not, check this: http://www.bpftpserver.com/products/bpftpserver/windows/howto/event/email I never tried it before, so I don't know if it works. -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
July 7, 201113 yr Author that helped out so far i did send a test email to two different clients for testing purposes and recieved both the employees as test subjects recieved. thanks will continue through the write up again much appreciated... after this i do have another question , is it possible to open a document/file (.doc,.xls etc.) without downloading it from the ftp server. almost like a live link to the file so i dont have to download everyfile that i want to just look at
July 7, 201113 yr With .NET there is the function called "readalllines" with a stream reader but I think it will download the file, never tried. -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
July 7, 201113 yr Author ok one of my last questions after throughly reading through the tutorial on bpftp i wrong my script using blat.exe to send out automated test email. now Im unsure on if i want to use bpftp as the IIS 7.5 ftp client is already set up with virtual directories to all my drives, and though this sounds lazy id like to keep this as is and not switch to another host ftp . if so how would i go about implementing/deploying said script into IIS 7.5.. sorry for the redundant questions still getting my feet wet with the script writing stuff.
July 7, 201113 yr No idea on how it works so I can't help you with that script. Maybe moving to a script which look at a folder as said before is the best way. -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
July 8, 201113 yr Author ive written the .bin file to meet the criteria of what i need. now im lost at the point when it comes to deploying said bin file . as stated im looking to stick with iis 7.5 ftp but deploying a bin file within my ftp directories is where im lost.
July 8, 201113 yr No double post: http://freepchelp.forum/topic/1528-ftp-upload-email/page__pid__4062#entry4062 -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
July 8, 201113 yr Author apologies. didnt know which forum category to post in. ill delete this one refer all comments to other thread
July 9, 201113 yr No need to delete :) Just keep posting on the other. Topic closed. -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------