Mstdlib-1.24.0
Email Simple Writer

Functions

char * M_email_simple_write (const M_email_t *email)
 
M_bool M_email_simple_write_buf (const M_email_t *email, M_buf_t *buf)
 

Detailed Description

Writes an email. Useful for small messages. Alls all data is contained within an email object for easy processing.

Function Documentation

◆ M_email_simple_write()

char * M_email_simple_write ( const M_email_t email)

Create an email message string.

Parameters
[in]emailEmail object.
Returns
String.

◆ M_email_simple_write_buf()

M_bool M_email_simple_write_buf ( const M_email_t email,
M_buf_t buf 
)

Create an email message string added to the given buffer.

Parameters
[in]emailEmail object.
[in]bufBuffer to write message.
Returns
M_TRUE on success, otherwise M_FALSE.