Checking the Multipurpose Internet Mail Extension file

 

You might have problems with the Multipurpose Internet Mail Extension (MIME) file that is causing the QtmmSendMail API to return an error. You should check the MIME file to ensure that these problems are fixed.

  1. Check the MIME file placement. The MIME file must be in the ROOT system and start with a "/", for example, /myfile.txt, and the file name must include the path /mydirectory/myfile.mime.

  2. Check the authority levels. QMSF and QTCP profiles must have the authority to read and delete the MIME file.

    1. In the i5/OS® character-based interface, type WRKLNK (the Work with Object Links command).

    2. Type 9 (Display) to work with the QMST and QTCP authorities. The Work with Authority display appears.

  3. Ensure that the MIME file has an end-of-header (CRLFCRLF) statement between the header and the body.

  4. Ensure that the MIME file is compliant with MIME Request for Comments (RFCs).

See section 2.1 in RFC2822 (http://rfc.net/rfc2822.html) for more information about the end-of-header statement.

 

Parent topic:

Solving problems with the QtmmSendMail API