Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

JCL & VSAM :: RE: Mail via SMTP with an image?

$
0
0
Author: vasanthz
Posted: Fri Jan 27, 2017 6:15 am (GMT 5.5)

SMTP mail with embedded logo?? say no more fam..

Code:
HELO WELLS                                                           
MAIL FROM:<WELLS@DOGE.COM>                           
RCPT TO:<WELLS@DOGE.COM>                             
DATA                                                                   
FROM: WELLS@DOGE.COM                                 
TO: WELLS@DOGE.COM                                   
SUBJECT: THIS IS BROUGHT TO YOU BY DOGE                                 
MIME-VERSION: 1.0;                                                     
Content-Type: multipart/mixed; boundary="-------------...SuchCode"     
                                                                       
---------------...SuchCode                                             
Content-Type: multipart/related; boundary="-------------...MuchCompile"
                                                                       
---------------...MuchCompile                                           
Content-Type: text/html;                                               
                                                                       
<html>                                                                 
<body>                                                                 
<p> such code much compile </p>                                         
<p style="margin: 0; padding: 0"><img src="cid:wells.gif" alt="" /></p>
<p> very programs </p>                                                 
</body>                                                                 
</html>                                                                 
                                                                       
---------------...MuchCompile                                           
Content-type: image/gif; name="wells.gif"                               
Content-ID: <wells.gif>                                                 
X-Attachment-Id: wells.gif                                             
Content-Disposition: Embedded; filename="wells.gif"                     
Content-transfer-encoding: base64                                       

............................base64 encoded image here – LRECL 80.
.....................................................
---------------MuchCompile--   
---------------SuchCode--     


Output email is in the attachment.
_________________
Set all passwords to "incorrect", that way when I forget it will tell "Your password is incorrect"
- Jagermeister


Viewing all articles
Browse latest Browse all 8500

Trending Articles