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

Example

The following example shows how to use this routine to include the postmaster address in the From: header line of a notification message:


mtaEnqueueWriteLine(nq, "From: Postmaster <", 0,
                    mtaPostmasterAddress(NULL, NULL, 0), 0,
                    "\>", 0, NULL);