#include <sys/nutdebug.h>
#include <sys/confnet.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <pro/rfctime.h>
#include <memdebug.h>
#include <string.h>
#include <pro/smtpc.h>
Go to the source code of this file.
Defines | |
#define | SMTP_TIMEOUT 600000 |
Functions | |
CONST char * | NutSmtpReceiveResponse (SMTPCLIENTSESSION *si) |
Read a response line from the server. | |
CONST char * | NutSmtpSendCommand (SMTPCLIENTSESSION *si, CONST char *fmt,...) |
Send command to the server and return the first response line. | |
void | NutSmtpDisconnect (SMTPCLIENTSESSION *si) |
Terminate an SMTP session. | |
SMTPCLIENTSESSION * | NutSmtpConnect (uint32_t ip, uint16_t port) |
Start an SMTP session. | |
int | NutSmtpLogin (SMTPCLIENTSESSION *si, char *host, char *user, char *pass) |
Identify the client SMTP to the server. | |
int | NutSmtpSendMailRequest (SMTPCLIENTSESSION *si, MAILENVELOPE *me) |
Send mail request. | |
int | NutSmtpSendMailHeader (SMTPCLIENTSESSION *si, MAILENVELOPE *me) |
Send major mail header lines. | |
int | NutSmtpSendEncodedLines (SMTPCLIENTSESSION *si, CONST char *text) |
Send encoded email text lines. | |
CONST char * | NutSmtpSendMail (SMTPCLIENTSESSION *si, MAILENVELOPE *me) |
Send an email via an active SMTP session. |