Merger By Dave Doulton University of Southampton
Content Purpose Dialog Features used Demonstration Summary
Purpose To be able to send personalised s To use data from SIR database in s To do this automatically from SIR
Dialog A single pql file containing a dialog
Dialog 2 Allows user to specify details of Subject Command to send to smtp server The smtp server The address of the sender
Dialog 3 Allows user to specify the data The message to be sent + temporary The data to merge The number of fields in the data file The field containing the address Whether csv header is present Filename of saved configuration
Dialog 4 There are buttons to allow editing of the message file editing of the data file saving of the configuration merging the files and sending the s
Features Used The development used the following useful features of SIR2000/SIR2002ß.
Dialog Painter
PQL Escape compute line=" /SMTP= /TO="+vals( )+" /FROM= /FILE= /SUBJECT= " write line pql escape line (note space before /FROM)
Subprocedures Subprocedures are used to do common tasks such as enabling buttons based on checks of other fields on the dialog.
UPSET & UPGET UPSET stores a value in the ini file compute dummy= upset("mailconf",gettxt(id_conf)) UPGET gets it back compute fn=upget('mailconf') note - these do not work in batch
Multiple programs in dialog Multiple programs in the footer of a dialog Once the dialog has done its work it can then activate other programs as required this can be controlled by CIF
CIF When the merge button is pressed global variable go is set to MERGE cif eq " ","MERGE” … … cif end
Data Passing Data can be passed between programs in global variables Especially where they are changing the source of the subsequent programs
Demonstration The program can be run picking up an old configuration or start with a new one. It depends on where the configuration file is stored and whether the program has been run before. RUN
Summary A single pql file can be used to create and send messages from PC or Unix. A sample Unix script to do smtpsend and a PC setup program to install smtpsend are on the CD All of you with addresses will have received and by this route.
The End