The mtaSend() routine takes only one argument, item_list, which is a pointer to an array of item descriptors. Each item descriptor specifies an action to be taken, and provides the information needed to perform that action.
The list of item descriptors is terminated with an entry containing the MTA_END_LIST (0) item code.
Each item descriptor has the following C-style structure declaration:
struct { int item_code; const void *item_address; int item_length; int item_status; const char *item_smessage; } mta_item_list_t; |