Hi Russell, > I want to send files by email from a "DOS box" in Windows > - XP, Vista, WIN2000, ... . > Ideally from the command line or batch file or script. > Batch file or DOS level commands which can be accessed via DOS > calls from a steam driven application would be most desirable. > > Any amount of high level arcanery exists to do this - I'd like > some low level arcanery. > Ideally I want a system process that takes a directory of files > and sends them one per message with a subject line to a specified > location by email. (Subject line becomes a website photo title. > Destination address sets folder & album they appear in). I'd write a tiny C program that takes the image (I assume a .JPG) and creates an standard Unix style message file. Easy to make templates for header pieces & trailer piece. Build message with header1 + destination-address + header2 + subject-line + header3 + base64-encoded-image + trailer. For a high volume application like this, you might want to embed the header & trailer pieces into the C source. One file == one message simplifies things. It's truly not hard. I will supply a base64encoder utility in C on request. Use Cygwin shell scripts (I'm a Unix guy) to run process over all files in given directory. After it's sent, either delete or move file out of drop-box area. Script run continuously in the background or manually whenever you want to do processing. This only needs an SMTP client utility. I've heard that sSMTP will build out of the box under Cygwin. Also there appears to be a Win32 native application called blat that is an SMTP client for Windows boxes. Or you may have a sendmail (only client side needed) available. Under Mac OS, I'd use Postfix's sendmail command. Lee Jones -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist