Sun Java System Messaging Server 6 2005Q4 MTA Developer's Reference


This code fragment writes out two header lines.

mtaEnqueueWriteLine(nq, "From:", 0, NULL);
mtaEnqueueWriteLine(nq, "Subject: test", 0, NULL);

This code fragment shows the header output as a result of the preceding code example.

Subject: test

The following code fragment shows how to terminate the header by writing a blank line.

mtaEnqueueWriteLine(nq, "", 0, NULL);

The following code fragment that produces a Date: header line.

char buf[64];

                     "Date: ", 0,
                      mtaDateTime(buf, NULL, sizeof(buf), 0), 0,