External identifier and description

You can use the following optional MIME headers to define your own identifier and/or a description:

  • X-Clab-SmartRelay-ExternalId

    • Your own identifier

      Any positive integer.

  • X-Clab-SmartRelay-ExternalDesc

    • Your own description

      An alphanumeric string of up to 255 characters

Use

You can use none, one or both of these headers. Their values can be entirely unrelated.

SmartRelay stores the header values in the database, together with other data about the relevant message. They can be found in the detailed message data, in the appropriate DataExporter feed.

Example:

Session session = Session.getInstance( System.getProperties(), null );
Message msg = new MimeMessage( session );
msg.setHeader( "X-Clab-SmartRelay-ExternalId", "23" );
msg.setHeader( "X-Clab-SmartRelay-ExternalDesc", "Testing only" );

Next page:

Storing recipient addresses in a user database


Also see: