Hi Sloan, I use a batch file to ZIP the files I want, and then a little command line tool called "SendMime" to send the zip file.
--Batch File Starts-- @echo off Rem Delete all files relating to previous deliveries del "..\delivery\Data Cut\*.*" /Q/F del "..\delivery\WADATA %date%.ZIP" /Q/F rem Make sure we are working in the right folder cd "..\delivery\Data Cut" echo Cut Created on %date% %time% > "..\delivery\time.txt" rem PLANT tables copy "..\plant\network\facility.*" rem SEWER tables copy "..\sewer\network\smains.*" copy "..\sewer\network\smanhole.*" copy "..\sewer\network\smaint.*" copy "..\sewer\network\snodes.*" copy "..\sewer\network\sobjects.*" copy "..\sewer\network\sslines.*" copy "..\sewer\network\svalves.*" rem STORM tables copy "..\storm\network\dmains.*" copy "..\storm\network\dmanhole.*" copy "..\storm\network\dmaint.*" copy "..\storm\network\dnodes.*" copy "..\storm\network\dobjects.*" copy "..\storm\network\dsleads.*" copy "..\storm\network\dsumps.*" copy "..storm\boundaries\50yflood.*" rem WATER tables copy "..\water\network\wmaint.*" rem Make a listing of the files for our records dir > "..\delivery\listing1.txt" copy "..\delivery\time.txt"+"..\delivery\listing1.txt" "..\delivery\listing.txt" del "..\delivery\listing1.txt" del "..\delivery\time.txt" Rem ZIP Files C:\Progra~1\WinZip\wzzip "..\delivery\WADATA %date%.ZIP" "..\delivery\Data Cut\*.*" Rem SendEMail C:\WINNT\SendMime -S 10.10.20.250 -f [EMAIL PROTECTED] -t [EMAIL PROTECTED] -c [EMAIL PROTECTED] -s "Works Asset Data Cut" -a "..\delivery\WADATA %date%.ZIP" Rem Copy Zip and Delete File Copy "..\delivery\WADATA %date%.ZIP" "..\delivery\PreviousMonths\" /Y Del "..\delivery\WADATA %date%.ZIP" /Q/F --BATCH FILE ENDS-- We call the batch file using the Scheduler in Win2k, but I could be called by a MapBasic app. Because you need to include multiple files, I would suggest zipping the files you want. I hope this gives you some ideas.. Cheers Ian Ian Tidy GIS Administrator Works Asset Napier City Council mailto:[EMAIL PROTECTED] http://www.napier.govt.nz -----Original Message----- From: Sloan Ritchie [mailto:[EMAIL PROTECTED] Sent: Wednesday, 24 March 2004 9:33 a.m. To: [EMAIL PROTECTED] Subject: MI-L Can MapBasic initiate sending out e-mail from MS Outlook? Hi, Does anyone have code examples of a way to send map files via e-mail, using MapBasic scripts? Or is there a MapInfo SendMail command? Sloan RF Engineer ATOS Origin Seattle, WA --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11047 ###################################################################### This e-mail message has been scanned and cleared by MailMarshal ###################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11048
