SMTPc_SendMsg()

Send a message (an instance of the SMTPc_MSG structure) to the SMTP server.

Files

smtp-c.h/smtp-c.c

Prototype

void  SMTPc_SendMsg (NET_SOCK_ID   sock_id,
                     SMTPc_MSG    *p_msg,
                     SMTPc_ERR    *p_err);

Arguments

sock_id      

Socket ID.

p_msg          

 SMTPc_MSG structure encapsulating the message to send.

p_err            

Pointer to variable that will hold the return error code

Returned Values

none.

Required Configuration

Module Configuration.

Notes / Warnings

  1. The function SMTPc_SetMsg has to be called before being able to send a message.
  2. The message has to have at least one receiver, either "To", "CC", or "BCC".

Example Usage

none.