IBM Support

Sendmail generates an email with a blank body

Troubleshooting


Problem

Using sendmail to send out a file where all lines in the file contain colons (:).

Cause

Sendmail userid@host <test1.txt is used to generate an email. In this case, test1.txt is a file with lines that contain colons (:). Sendmail uses a colon to identify the line as a mail header. Therefore, when all the lines contain a colon, the entire file is used as a mail header, and not the body of the email. This causes the body of the email to be blank or empty.

Resolving The Problem

A blank line identifies the end of the mail headers and the start of the mail body. Use one of the following options to fix this:

  • Change the first line of the data set so that it does not contain a colon (:). Any simple text will do (for example, This is an email.).
  • Add an actual header to the data set (For example, Subject: email). The second line MUST be blank. Next follow with the text of the email.

[{"Product":{"code":"SSSN3L","label":"z\/OS Communications Server"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":"All","Platform":[{"code":"PF035","label":"z\/OS"},{"code":"PF025","label":"Platform Independent"}],"Version":"1.6;1.7;1.8;1.9;1.10;1.11;1.12;1.13;2.1;2.2","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
15 June 2018

UID

swg21268916