Previous Topic: Sample Email TemplatesNext Topic: Sending the Report Data as a PDF


Using HTML Within an EMAIL

You can use the following as a model:

/EMAIL PARMS                                       
 CLASS=B                                           
 DEST=ESF2                                         
 FORMS=EMAIL                                       
 WRITER=EMAILTXT                                   
                                                   
 SENDRPT=NO                                        
 MAILFILE='&FNM.MSG'                               
 MAILTO=&EMADR1                                    
        &EMADR2                                    
        &EMADR3                                    
        &EMADR4                                    
        &EMADR5                                    
        &EMADR6                                    
        &EMADR7                                    
        &EMADR8                                    
        &EMADR9                                    
        &EMADR10                                   
        &EMADR11                                   
        &EMADR12                                   
 ADDRESS='SUBJECT=REPORT &RID IS READY FOR VIEWING' 
/EMAIL TEXT                                             
 MSGTYPE=HTML                CA Spool Command
 MSGSTART=>>                 CA Spool Command                           
 <HTML>                                                 
 <PRE >                                                  
 REPORT : &ARCHID<BR>                                      
          &DESC<BR>                                     
 CREATED: &DATE4 &TIME <BR>                             
 <BR>                                                   
 NOW AVAILABLE FOR VIEWING<BR>                          
 <BR>                                                   

 &WEBLINK                                               
 WEBLINK CONTINUED                                      
 WEBLINK CONTINUED                                      
                                                        
 THIS EMAIL IS BEING SENT TO THE FOLLOWING DISTID(S)<BR>
   &DIST1<BR>                                           
   &DIST2<BR>                                          
  </PRE>    
 </HTML>   
 <<MSGEND=