Definition in file smtp_client.h.
Go to the source code of this file.
Defines | |
#define | SMTPC_TOUT 20 |
#define | SMTP_UNINITIALIZED 1 |
#define | SMTP_CLOSED 2 |
#define | SMTP_OPEN_REQUESTED 3 |
#define | SMTP_CONNECTIONOPEN_SENT 4 |
#define | SMTP_CONNECTION_OPENED 5 |
#define | SMTP_SERVER_READY 6 |
#define | SMTP_HELO_SENT 7 |
#define | SMTP_HELO_ACKED 8 |
#define | SMTP_MAILFROM_SENT 9 |
#define | SMTP_MAILFROM_ACKED 10 |
#define | SMTP_RCPTTO_SENT 11 |
#define | SMTP_RCPTTO_ACKED 12 |
#define | SMTP_DATAREQ_SENT 13 |
#define | SMTP_DATAREQ_ACKED 14 |
#define | SMTP_BODY_SENT 15 |
#define | SMTP_SENDING_DATA 16 |
#define | SMTP_DATAEND_REACHED 17 |
#define | SMTP_DATAEND_SENT 18 |
#define | SMTP_DATAEND_ACKED 19 |
#define | SMTP_QUIT_SENT 20 |
#define | SMTP_QUIT_ACKED 21 |
#define | SMTP_CMD_SERVER_READY '2' + '2' + '0' |
#define | SMTP_CMD_OK '2' + '5' + '0' |
#define | SMTP_CMD_DATAOK '3' + '5' + '4' |
#define | SMTP_CMD_QUITOK '2' + '2' + '1' |
Functions | |
INT8 | smtpc_connect (UINT32, UINT16) |
Start E-mail sending procedure. | |
void | smtpc_init (void) |
Initializes SMTP client. | |
UINT8 | smtpc_getstate (void) |
Retrieves SMTP clients' state. | |
INT8 | smtpc_getdomain (UINT8 *) |
Fills in local domain information. | |
INT8 | smtpc_getsender (UINT8 *) |
Returns senders' e-mail address. | |
INT8 | smtpc_getreceiver (UINT8 *) |
Returns receivers' e-mail address. | |
INT8 | smtpc_getsubject (UINT8 *) |
Returns subject of the E-mail. | |
INT16 | smtpc_getdata (UINT8 *, UINT16) |
Returns e-mail data (message) to be sent. | |
void | smtpc_dataacked (void) |
Last data received by remote host. | |
void | smtpc_error (void) |
SMTP client error handler. | |
void | smtpc_allok (void) |
SMTP client success handler. |
|
SMTP clients' timeout in seconds Definition at line 71 of file smtp_client.h. |
|
SMTP Client state: Not initialized yet Definition at line 78 of file smtp_client.h. |
|
SMTP Client state: TCP connection closed Definition at line 79 of file smtp_client.h. Referenced by smtpc_connect(), and smtpc_init(). |
|
SMTP Client state: User has requested mail read Definition at line 80 of file smtp_client.h. Referenced by smtpc_connect(). |
|
SMTP Client state: TCP connection request sent Definition at line 81 of file smtp_client.h. |
|
SMTP Client state: TCP Connection opened Definition at line 82 of file smtp_client.h. |
|
SMTP Client state: SMTP server has indicated 220 Definition at line 83 of file smtp_client.h. |
|
SMTP Client state: HELO sent by us Definition at line 84 of file smtp_client.h. |
|
SMTP Client state: Server has acked HELO by 250 Definition at line 85 of file smtp_client.h. |
|
SMTP Client state: MAIL FROM sent by us Definition at line 86 of file smtp_client.h. |
|
SMTP Client state: Server has acked MAIL FROM by 250 Definition at line 87 of file smtp_client.h. |
|
SMTP Client state: RCPT To sent by us Definition at line 88 of file smtp_client.h. |
|
SMTP Client state: Server has acked RCPT TO by 250 Definition at line 89 of file smtp_client.h. |
|
SMTP Client state: DATA sent by us Definition at line 90 of file smtp_client.h. |
|
SMTP Client state: Server has acked DATA by 354 Definition at line 91 of file smtp_client.h. |
|
SMTP Client state: We have sent RFC822 body Definition at line 92 of file smtp_client.h. |
|
SMTP Client state: We are sending data... Definition at line 93 of file smtp_client.h. |
|
SMTP Client state: We have no more data Definition at line 94 of file smtp_client.h. |
|
SMTP Client state: CRLF.CRLF sent by us Definition at line 95 of file smtp_client.h. |
|
SMTP Client state: Server has acked CRLF.CRLF by 250 Definition at line 96 of file smtp_client.h. |
|
SMTP Client state: QUIT sent by us Definition at line 97 of file smtp_client.h. |
|
SMTP Client state: Server has acked quit by 221 Definition at line 98 of file smtp_client.h. |
|
Server outputs when connected Definition at line 103 of file smtp_client.h. |
|
Command executed OK Definition at line 104 of file smtp_client.h. |
|
OK to send data Definition at line 105 of file smtp_client.h. |
|
OK to quit, close connection Definition at line 106 of file smtp_client.h. |
|
Definition at line 120 of file smtp_client.c. References smtp_client, SMTP_CLOSED, and SMTP_OPEN_REQUESTED. |
|
Definition at line 155 of file smtp_client.c. References get_timer(), RESET_SYSTEM, smtp_client, SMTP_CLOSED, smtpc_init_done, TCP_APP_OFFSET, TCP_DEF_TOUT, tcp_getsocket(), TCP_TOS_NORMAL, and TCP_TYPE_CLIENT. |
|
Definition at line 193 of file smtp_client.c. References smtp_client. |
|
Definition at line 120 of file smtpc_callbacks.c. |
|
Definition at line 139 of file smtpc_callbacks.c. |
|
Definition at line 159 of file smtpc_callbacks.c. |
|
Definition at line 178 of file smtpc_callbacks.c. |
|
Definition at line 203 of file smtpc_callbacks.c. |
|
Definition at line 219 of file smtpc_callbacks.c. |
|
Definition at line 84 of file smtpc_callbacks.c. |
|
Definition at line 99 of file smtpc_callbacks.c. |