Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

# apps/smtp/smtp.h File Reference

## Detailed Description

SMTP header file.

Author:
  Adam Dunkels <adam@dunkels.com>

`#include "uipopt.h"`

Include dependency graph for smtp.h:

This graph shows which files directly or indirectly include this file:

## Defines
#define | SMTP_ERR_OK 0
| Error number that signifies a non-error condition.
#define | UIP_APPCALL smtp_appcall
| The name of the application function that uIP should call in response to TCP/IP events.
#define | UIP_APPSTATE_SIZE (sizeof(struct smtp_state))
| The size of the application state that is to be stored in the uip_conn structure.
## Functions
void | smtp_done (unsigned char error)
| Callback function that is called when an e-mail transmission is done.
void | smtp_configure (char *localhostname, u16_t *smtpserver)
| Specificy an SMTP server and hostname.
unsigned char | smtp_send (char *to, char *from, char *subject, char *msg, u16_t msglen)
| Send an e-mail.