# modules/uip/apps/smtp/smtp.h File Reference

`#include "uipopt.h"`

## Data Structures
struct | smtp_state
## Defines
#define | SMTP_ERR_OK 0
#define | SMTP_SEND(to, cc, from, subject, msg) smtp_send(to, cc, from, subject, msg, strlen(msg))
#define | UIP_APPCALL smtp_appcall
## Typedefs
typedef struct smtp_state | uip_tcp_appstate_t
## Functions
void | smtp_done (unsigned char error)
void | smtp_init (void)
void | smtp_configure (char *localhostname, u16_t *smtpserver)
unsigned char | smtp_send (char *to, char *from, char *subject, char *msg, u16_t msglen)
void | smtp_appcall (void)

## Detailed Description

SMTP header file

Author:
  Adam Dunkels <adam@dunkels.com>