Hi >From your first mail it look like you are going to send a mail to sombody after the translation
I use that quit a bit, either for sendeing data to people baesed on a automatic batch job, sending a mail with the url to the data ( in a SpatialDirect application ) or sending error messeageds to the administrator - me - if somthing goes wrong. I have implemented this with FME_END_TCL, tcl, and blat - a free mailing program. Just the other day I discorered that there also are a mail packagdes to tcl. I have attatched some of the code I use for this In blatmail.tcl are two proc' the first are reading a template file with the text into a variable and the second is sending the mail to use these I use a third proc you will find som exampels in the lds.tcl file and the ldsData.msg file contans teh template - it is in danish but I hope you can se the idear It is called from the mapping file using FME_END_TCL source 'fiel' ; procName you can find bat at http://www.blat.net/ have fun, and merry christmas to you all Peter >From: "RichardW" <[EMAIL PROTECTED]> >Reply-To: [email protected] >To: [email protected] >Subject: [fme] Re: Macros, Parameters & FME_END_TCL >Date: Thu, 22 Dec 2005 16:37:24 -0000 > >Many thanks to Peter, Mark and Dale for contribution that encouraged >me to persevere. > >I now have a working framework that allows my mapping file to call a >proc and pass it a user defined parameter. Now I have to turn it >into an application. I still have so much to learn about tcl. > >For the benefit of the rest of the group should they ever want to do >the same my test framework code is below: >(Note) I now find that using a proc means I don't actually have to >define a variable at all. I could just do the call as: >FME_END_TCL source {$(FME_MF_DIR)test_tcl.tcl}; loggit passthis > > >Richard Wilkinson >Leicestershire County Council > >Header contains this > >INPUT_DATASET nullin >OUTPUT_DATASET nullout ># >=============================================================== >FME_END_TCL set rwadmin 10000000 >FME_END_TCL puts \"This is a test $rwadmin \" >FME_END_TCL source {$(FME_MF_DIR)test_tcl.tcl}; loggit $rwadmin >#============================================================== ># >#============================================================== >#! START_WB_HEADER >READER_TYPE NULL >READER_KEYWORD NULL_SOURCE >NULL_SOURCE_DATASET null >WRITER_TYPE NULL >WRITER_KEYWORD NULL_DEST >NULL_DEST_DATASET null >#! END_WB_HEADER > > > > >test_test.tcl contains this > >proc loggit fileid { >puts -nonewline "This is a test " >puts $fileid >} > > > > > > > > > >Get the maximum benefit from your FME, FME Objects, or SpatialDirect via >our Professional Services team. Visit www.safe.com/services for details. >Yahoo! Groups Links > > > > > > > _________________________________________________________________ Find alt det, du søger på MSN Søg http://search.msn.dk Get the maximum benefit from your FME, FME Objects, or SpatialDirect via our Professional Services team. Visit www.safe.com/services for details. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/fme/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
blatmail.tcl
Description: Binary data
lds.tcl
Description: Binary data
# Template til brug for LDS log meddelelser # version 1, den 19 august 2005 #<-f><[EMAIL PROTECTED]> <-f><[EMAIL PROTECTED]> <-subject><KMS datadistribtion> #<-cc><[EMAIL PROTECTED]> Følgende data bestil fra KMSDatadsitribution den :dato:: :log: er nu færdig konverteret og kan hentes på følgede url. :url: Data vil være tilgængelige indtil :delDato:, hvorefter de vil blive slettet.Som et alternativ til ovenstående kan data også hentes via menupunktet 'Mine Data' på dataforsyning.kms.dk.
#Meget små datasæt, mindre edn 5 mb vil være vedhæftet denne mail som en zipfil.
Zipfilen er navngivet efter følgende principper, afhængig af om udtræksmåde 1. 'Administrativt område nr.'_'Data format'_'Projektion'.ZIP 2. 'Koor. til øverste venstre hjørne'_'Data format'_'Projektion'.ZIP 3. 'Første del af polygonnavn'_'Data format'_'Projektion'.ZIP # evt. tilføjet et løbenummerI zipfilen findes data for det eller de datasæt der er valgt, dokumntation samt eventuelle hjælpeprogrammer.
Er der fejl, problemer eller spørgsmål til data bedes henvendelse rettet til undertegnede.
Med venlig hilsen Peter Laulund Den Nationale Geodatabank, Kort og Matrikelstyrelsen Tlf. 35 87 51 73 Mail. [EMAIL PROTECTED] NB: Dette er en automatisk sendt meddelelse fra LDS applikationen.
