Submitted by Kim Egekjaer on Wed, 07/01/2009 - 00:00
Forums

As you may know it has now been possible to include an html file as the e-mail content in InterForm400. Not only is it possible to include html (givning you freedom to format the e-mail freely), but you can also let the html file refer to an image on the web and even substitute variables.

To illustrate the possibilities use this html file - click here. If you open it you can see that it is using both functions described above. If you want to actully test it you can e.g. place the file in the IFS in /apf3812home/work and then run this command:

SUBJECT('Html Demo in InterForm400')

MSG(*stmf) MSGSTMF('/apf3812home/work/interword.html')

MSGVARS('Mr. X') FROMADR('sender@mydomain.com') 
The command above is a simple command that is using the html functionality. Please notice, that the first variable
in MSGVARS will substitute any use of *V1 in the html file, the second will substitute *V2 and so on.
(In the html file I have included 'Dear *V1' in the top).
See html file here

In the e-mail finishing definition you would do this:

 -------------------------------------------------------------------------------
          Create email / fax cover page text                           MAI345D

  Definition name  . . . . :   E-MAILKSE                                        

   Description  . . . . . . :   kse                                              

   Text version . . . . . . .   HTML                                             

  Description  . . . . . . .   HTML Demo                                        
 
   Subject  . . . . . . . . .   HTML Demo                                        

  Text and -format . . . . .   X        T=Text, H=HTML, R=Raw HTML, X=External  

  HTML stream file . . . . .   /apf3812home/work/interword.html                

  PDF-file name  . . . . . .   file.pdf                                         

   Fax cover page overlay . :   *NONE         Name, *NONE      F4=Prompt         

     File set . . . . . . . .                                                    

  F3=Exit   F4=Prompt   F12=Cancel
  -------------------------------------------------------------------------------

I hope this will help you to create even nicer e-mails with InterForm400.