z/OS Communications Server: IP User's Guide and Commands
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


DATA command—Define the following information as data

z/OS Communications Server: IP User's Guide and Commands
SC27-3662-00

Purpose

Use the DATA command to define the following information as the data text of the mail body.

Format

Read syntax diagramSkip visual syntax diagram
>>-DATA--------------------------------------------------------><

Parameters

There are no parameters for this command.

Examples

After entering the DATA command, you receive the following message (response code 354) when you can transmit the body of your mail:
354 Enter mail body.  End new line with just a '.'

You end transmitting the body of your mail by entering a single ASCII period (.) on a line by itself.

The following message indicates success:
250 Mail Delivered

Usage

  • Use the DATA command after a HELO command, a MAIL FROM command, and at least one RCPT TO command have been accepted.
  • When receiving mail over a TCP connection, the ASCII period should be followed by the ASCII <carriage return> <line feed> character sequence. If any record in the body of the mail begins with a period, the sending SMTP program must convert the period into a pair of periods (..). When the receiving SMTP encounters a record that begins with two periods in the body of the mail, it discards the leading period. This convention permits the body of mail to contain records that would otherwise be interpreted as signaling the end of the body of mail. These rules must be followed over both TCP and batch SMTP connections.

    The SMTPNOTE command performs this period doubling on all mail spooled to SMTP. If the body of the mail in a batch SMTP command is not explicitly ended by a record with a single period, SMTP adds one.

    After a period has been received, the SMTP connection is reset to the initial state (the state before any sender or recipients have been specified). Additional MAIL FROM, RCPT TO, DATA, and other commands can now be sent.

    If no more mail is to be delivered, end the connection with the QUIT command. If a QUIT command is not found at the end of a batch SMTP command data set, it is implied.

  • If SMTP runs out of local mail storage space, it sends a reply with a 451 code. If the length of the body of the mail exceeds MAXMAILBYTES (defined in SMTP configuration data sets to be 512KB), SMTP sends a reply with a 552 code. For more information about MAXMAILBYTES, see the z/OS Communications Server: IP Configuration Reference.
  • When mail arrives over a batch SMTP connection from a Remote Spooling Communications Subsystem (RSCS) network host, and 822 header rewriting is enabled (with the REWRITE822HEADER configuration option), then header fields are modified to ensure that all addresses are fully qualified domain names. See the z/OS Communications Server: IP Configuration Reference for more information about header rewriting.
  • When mail arrives over the JES spool interface using SMTP batch or TSO transmit command, an NL (newline) or < character occurring in column 80 of the data is interpreted as a continuation character by the SMTP transport layer. The last byte of data should not be a continuation character. If the last byte is a continuation character, then the last record will not be processed correctly and you will be missing data. Check your note file, correct the data and resend the mail.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2013
This information center is Built on Eclipse™ ( www.eclipse.org ).