This code fragment writes out two header lines.
mtaEnqueueWriteLine(nq, "From: sue@siroe.com", 0, NULL); mtaEnqueueWriteLine(nq, "Subject: test", 0, NULL); |
This code fragment shows the header output as a result of the preceding code example.
From: sue@siroe.com 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]; mtaEnqueueWriteLine(nq, "Date: ", 0, mtaDateTime(buf, NULL, sizeof(buf), 0), 0, NULL); |