imme_write_text - Write text to a message being enqueued.
#include <imta.h>
int imme_write_text(imme_t me, const char *text);
imme_write_text() writes the NULL-terminated string referenced text in the body of a message being enqueued corresponding to the enqueue context me . It must be called only after has been called.
imme_write_text() does not append line a terminator (CRLF for SMTP) to the given string, text. It is left to caller to include line terminators, where appropriate, in their text. This allows a single call to output multiple lines of text to the message body. If this terminator is omitted then, in the message being composed, the subsequent line will be appended directly to the end the given text lacking a terminator.
imme_write_text() returns IMRC_OK when successful. And otherwise:
A textual explanation of the failure can be obtained by calling imta_error() immediately afterwards.
_______________________________________