Skip to main content  
  Easy400   |       iSeries home   |   RSS feed
Freeware
 
Introduction
5250 utility
Windows utility
    Address Book
    Groups
    Create & Send MIME
    Select & Send MIME
    Work with MIME's
    Customized Letters
    Appendix A
Other utilities
Service program
Sample code
Commands
CGI support
FAQ
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
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.
     
  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 (see Figure 4c) 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 1- On some mail editors (e.g. Lotus Notes R5) this techniques would not work.
     
  3. Linking external images
    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.



    Contact