Skip to main content  
  Easy400   |       IBM System i home   |   RSS feed
Public-Source
 
Introduction
Main utilities
5250 utility
    Address Book
    Groups
    Create & Send MIME
    Select & Send MIME
    Work with MIME's
    Customized Letters
    Appendix A
Windows utility
Commands
Service program
Sample code
CGI support
FAQ
WEBMail
Bibliography
 
Download
 
 

 
Search   
Appendix A
Various ways to arrange images

There are a number of ways you can use to arrange images and texts within a MIME message.

  1. Simple embedding
  2. Referencing attachments
  3. Linking external images [recommended]
To display the examples, use command mmail/wrkmime with option 5.
To run the examples, send them to your email.

     
  1. Simple embedding
    This is the basic approach used in Examples 3 to 6. Single pieces (texts and images) are embedded in the MIME message one after the other.
    By doing this, pieces are just dropped one adjacent to the previous one, and there is no way you can better arrange them, even if you are using Content-Type: text/html.
    Note- Though you inbed an image, some mailers will show it as an attachment.  
  2. Referencing attachments
    This approach is used in Example 7. Basically this technique will work as follow:
    -You will be attaching all the images that need to be shown in the message. Each image will be assigned a unique Content-IDheader. As an example:
        Content-ID: <007@mime.mail>
    -The text of the message (preceeding the attachments) will have Content-Type: text/html. In this text you will be referencing the images with HTML tags like
        <img src="cid:007@mime.mail">
    Manual implementation. When you add images as attachments, you should specify a Content-ID number to be referred in the text part of the MIME message.
    Implementation via CGI. See the parameter ImbAttCid of the MimeImbatt subprocedure.
    Advantages
    -Texts and images can be arranged as needed.
    Disadvantages
    -Attachments, though needed in this tecnique, will look superfluous to readers.
    Note- On some mailers this tecnique does not work as expected.
     
  3. Linking external images [recommended]
    This approach is used in Example 8. This techniques does not require images be embedded or attached to the MIME message. Instead, images are loaded via regular <img src="http://......."> tags. Images are loaded into the document when it is opened.
    In order to work, this approach requires that the mail editor is linked to an Internet browser, and that the client is connected to the network when the document is opened for the first time.
    Advantages
    -Texts and images can be arranged as needed.
    -Documents are significantly smaller than in the previous two cases. This result to faster delivery time, faster document open time, and less disk requirements for documents saving.
    Note- This technique works with all mailers.



    Contact