Re: Sending Link to a Unix file as message in JavaMail
Monday, September 3, 2001 06:32 AM
Specifying a link to a file is easy simply encode your mail as html and include a href. Allowing restricted access is another matter. Sounds like you want to set up an FTP server and then allow users to log in via that. Your href would contain a reference like 'ftp://www.myserver.com/mypath/myFile.txt' or whatever. You'd have to restict read/write rights for each file seperately if you only wanted certain files to be visible to certain users (or store them in different directories). Another alternative would be to have your own program, running on the server, that would handle the login but that opens another can of worms and unless you understand Unix properly I'd advise against it. Remember allowing users access to your computer's is dangerous.
Hope that this is of use.