SMTPc_SetMsg()
Sets the various fields of a SMTPc_MSG structure so that it is valid and usable.
Files
smtp-c.h/smtp-c.c
Prototype
void SMTPc_SetMsg (SMTPc_MSG *p_msg, SMTPc_ERR *p_err)
Arguments
p_msg
SMTPc_MSG structure to be initialized.
p_err
Pointer to variable that will hold the return error code
Returned Values
none.
Required Configuration
Notes / Warnings
- This function MUST be called after declaring a SMTPc_MSG structure and BEFORE beginning to manipulate it. Failure to do so will likely produce run-time errors.
- The SMTPc_MSG structure member 'MIMEMsgHdrStruct' is left uninitialized for now, MIME extensions not being supported in this version.
Example Usage
none.