Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Files

smtp-c.h/smtp-c.c

Prototype

 

Code Block
languagecpp
void  SMTPc_SendMsg (NET_SOCK_ID   sock_id,
                     SMTPc_MSG    *msg,
                     SMTPc_ERR    *perr);

 

Arguments

sock_id       Socket ID.

msg            SMTPc_MSG structure encapsulating the message to send.

perr             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.