<!doctype html>                                                                                                                                                                                                                     
<html>                                                                                                                                                                                                                              
<head>                                                                                                                                                                                                                              
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0,maximum-scale=1.0,minimal-ui"/>                                                                                                            
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>                                                                                                                                                           
<style>                                                                                                                                                                                                                             
p.p1      {margin-top: 15px; margin-bottom: 0px; font-family: Arial, Helv;}                                                                                                                                                         
ul.ul1    {margin-top: 0px; margin-bottom: 0px; font-family: Arial Narrow, Arial, Helv;}                                                                                                                                            
table.msg {font-family: arial, helv; }                                                                                                                                                                                              
.code     {font-family: monospace, courier, consolas; color: #A91400; font-size: 110%}                                                                                                                                              
</style>                                                                                                                                                                                                                            
</head>                                                                                                                                                                                                                             
<body>                                                                                                                                                                                                                              
<table>                                                                                                                                                                                                                             
<tr><td><table class="msg" cellspacing="0" cellpadding="0" width="100%">                                                                                                                                                            
        <tr><td>                                                                                                                                                                                                                    
                Dear friend,                                                                                                                                                                                                        
                <p class="p1">command <b>MMAIL/EMBEDSPLF</b> allows to create a HTML stream file containing                                                                                                                         
                <ul class="ul1">                                                                                                                                                                                                    
                <li>a message, and                                                                                                                                                                                                  
                <li>a spooled file.                                                                                                                                                                                                 
                </ul>                                                                                                                                                                                                               
                <p class="p1">You may then use MMAIL command EMLHTML, EMLNOTE or POSTANOTE to send an e-mail message                                                                                                                
                where this HTML stream file acts as <b>message body</b>.<br>                                                                                                                                                        
                In this way you may e-mail a spooled file <i>embedding it into the message body</i>, instead of <i>attaching it</i>.                                                                                                
                <p class="p1">In this example                                                                                                                                                                                       
                <ul class="ul1">                                                                                                                                                                                                    
                <li>We used source file MMAIL/TXTSRC, member EMBEDSPLF2                                                                                                                                                             
                    for message text<br>                                                                                                                                                                                            
                    (Press <a href="https://www.easy400.net/mmailp/dspsrc1.pgm?xlib=MMAIL&xfile=TXTSRC&xmbr=EMBEDSPLF2"                                                                                                             
                    target="_blank">here</a> to display it)                                                                                                                                                                         
                <li>we used command<br>                                                                                                                                                                                             
                    <span class="code">DSPLIB LIB(QTEMP) OUPUT(*PRINT)</span><br>                                                                                                                                                   
                    to generate a QPDSPLIB spooled file                                                                                                                                                                             
                <li>then we used command<br>                                                                                                                                                                                        
                    <span class="code"><b>MMAIL/EMBEDSPLF</b> TOSTMF('/mmail/html/embedsplf2.html')<br>                                                                                                                             
                    SPLF(QPDSPLIB) SPLFONT('monospace' 100 'gold' 'black' *YES)<br>                                                                                                                                                 
                    MSGSRCF(MMAIL/TXTSRC) MSGSRCMBR(EMBEDSPLF2) MSGTYPE(*HTML)</span><br>                                                                                                                                           
                    to create the stream file <i>'/mmail/html/embedsplf2.html</i>'<br>                                                                                                                                              
                    containing a message body in HTML format.<br>                                                                                                                                                                   
                    That stream file is the one you are reading now.                                                                                                                                                                
                </ul>                                                                                                                                                                                                               
                <p class="p1">This HTML stream file body can then be sent with one of the following commands:                                                                                                                       
                <ul class="ul1">                                                                                                                                                                                                    
                <li><span class="code"><b>MMAIL/EMLHTML</b> SUBJECT('Example 2 of an embedded spooled file')<br>                                                                                                                    
                  FROMNAME('Johnny, Cash')<br>                                                                                                                                                                                      
                  FROMADDR('jcash@cashisland.com') TO('jerrylou@yahoo.com'/'Jerry'/*TO)<br>                                                                                                                                         
                  HTML('/mmail/html/embedsplf2.html')</span>                                                                                                                                                                        
                <li><span class="code"><b>MMAIL/EMLNOTE</b> SUBJECT('Example 2 of an embedded spooled file') NOTESRC(*STMF)<br>                                                                                                     
                  NOTESTMF('/mmail/html/embedsplf2.html') NOTETYPE(*HTML) DSTTYPE(*FREELIST)<br>                                                                                                                                    
                  TO((jerrylou@yahoo.com *TO)</span>)                                                                                                                                                                               
                <li><span class="code"><b>MMAIL/POSTANOTE</b> SUBJECT('Example 2 of an embedded spooled file') NOTESRC(*STMF)<br>                                                                                                   
                  NOTESTMF('/mmail/html/embedsplf2.html') NOTETYPE(*HTML) DSTTYPE(*FREELIST)<br>                                                                                                                                    
                  TO((jerrylou@yahoo.com *TO))</span>                                                                                                                                                                               
                </ul>                                                                                                                                                                                                               
                                                                                                                                                                                                                                    
                <p class="p1">Enjoy this tool,<br><br>                                                                                                                                                                              
                Giovanni                                                                                                                                                                                                            
                <br><br>                                                                                                                                                                                                            
                </td></tr>                                                                                                                                                                                                          
        </table>                                                                                                                                                                                                                    
        </td></tr>