Presentation is loading. Please wait.

Presentation is loading. Please wait.

Email Merger By Dave Doulton University of Southampton.

Similar presentations


Presentation on theme: "Email Merger By Dave Doulton University of Southampton."— Presentation transcript:

1 Email Merger By Dave Doulton University of Southampton

2 Content Purpose Dialog Features used Demonstration Summary

3 Purpose To be able to send personalised emails To use data from SIR database in emails To do this automatically from SIR

4 Dialog A single pql file containing a dialog

5 Dialog 2 Allows user to specify details of email Subject Command to send email to smtp server The smtp server The email address of the sender

6 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 email address Whether csv header is present Filename of saved configuration

7 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 emails

8 Features Used The development used the following useful features of SIR2000/SIR2002ß.

9 Dialog Painter

10 PQL Escape compute line=" /SMTP= /TO="+vals( )+" /FROM= /FILE= /SUBJECT= " write line pql escape line (note space before /FROM)

11 Subprocedures Subprocedures are used to do common tasks such as enabling buttons based on checks of other fields on the dialog.

12 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

13 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

14 CIF When the merge button is pressed global variable go is set to MERGE cif eq " ","MERGE” … … cif end

15 Data Passing Data can be passed between programs in global variables Especially where they are changing the source of the subsequent programs

16 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

17 Summary A single pql file can be used to create and send email 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 email addresses will have received and email by this route.

18 The End


Download ppt "Email Merger By Dave Doulton University of Southampton."

Similar presentations


Ads by Google