Go to the source code of this file.
|
err_t | smtp_set_server_addr (const char *server) |
|
void | smtp_set_server_port (u16_t port) |
|
err_t | smtp_set_auth (const char *username, const char *pass) |
|
err_t | smtp_send_mail (const char *from, const char *to, const char *subject, const char *body, smtp_result_fn callback_fn, void *callback_arg) |
|
err_t | smtp_send_mail_static (const char *from, const char *to, const char *subject, const char *body, smtp_result_fn callback_fn, void *callback_arg) |
|
void | smtp_send_mail_int (void *arg) |
|
◆ SMTP_DEFAULT_PORT
The default TCP port used for SMTP
◆ SMTP_RESULT_ERR_CLOSED
#define SMTP_RESULT_ERR_CLOSED 4 |
Connection unexpectedly closed by remote server
◆ SMTP_RESULT_ERR_CONNECT
#define SMTP_RESULT_ERR_CONNECT 2 |
Connection to server failed
◆ SMTP_RESULT_ERR_HOSTNAME
#define SMTP_RESULT_ERR_HOSTNAME 3 |
Failed to resolve server hostname
◆ SMTP_RESULT_ERR_MEM
#define SMTP_RESULT_ERR_MEM 7 |
◆ SMTP_RESULT_ERR_SVR_RESP
#define SMTP_RESULT_ERR_SVR_RESP 6 |
Server responded with an unknown response code
◆ SMTP_RESULT_ERR_TIMEOUT
#define SMTP_RESULT_ERR_TIMEOUT 5 |
Connection timed out (server didn't respond in time)
◆ SMTP_RESULT_ERR_UNKNOWN
#define SMTP_RESULT_ERR_UNKNOWN 1 |
◆ SMTP_RESULT_OK
◆ SMTPS_DEFAULT_PORT
The default TCP port used for SMTPS
◆ smtp_result_fn
typedef void(* smtp_result_fn) (void *arg, u8_t smtp_result, u16_t srv_err, err_t err) |
Prototype of an smtp callback function
- Parameters
-
arg | argument specified when initiating the email |
smtp_result | result of the mail transfer (see defines SMTP_RESULT_*) |
srv_err | if aborted by the server, this contains the error code received |
err | an error returned by internal lwip functions, can help to specify the source of the error but must not necessarily be != ERR_OK |
◆ smtp_send_mail()
err_t smtp_send_mail |
( |
const char * |
from, |
|
|
const char * |
to, |
|
|
const char * |
subject, |
|
|
const char * |
body, |
|
|
smtp_result_fn |
callback_fn, |
|
|
void * |
callback_arg |
|
) |
| |
◆ smtp_send_mail_int()
void smtp_send_mail_int |
( |
void * |
arg | ) |
|
◆ smtp_send_mail_static()
err_t smtp_send_mail_static |
( |
const char * |
from, |
|
|
const char * |
to, |
|
|
const char * |
subject, |
|
|
const char * |
body, |
|
|
smtp_result_fn |
callback_fn, |
|
|
void * |
callback_arg |
|
) |
| |
◆ smtp_set_auth()
err_t smtp_set_auth |
( |
const char * |
username, |
|
|
const char * |
pass |
|
) |
| |
◆ smtp_set_server_addr()
err_t smtp_set_server_addr |
( |
const char * |
server | ) |
|
◆ smtp_set_server_port()
void smtp_set_server_port |
( |
u16_t |
port | ) |
|