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
Definition at line 13 of file smtp.h.
◆ SMTP_RESULT_ERR_CLOSED
#define SMTP_RESULT_ERR_CLOSED 4 |
Connection unexpectedly closed by remote server
Definition at line 26 of file smtp.h.
◆ SMTP_RESULT_ERR_CONNECT
#define SMTP_RESULT_ERR_CONNECT 2 |
Connection to server failed
Definition at line 22 of file smtp.h.
◆ SMTP_RESULT_ERR_HOSTNAME
#define SMTP_RESULT_ERR_HOSTNAME 3 |
Failed to resolve server hostname
Definition at line 24 of file smtp.h.
◆ SMTP_RESULT_ERR_MEM
Out of resources locally
Definition at line 32 of file smtp.h.
◆ SMTP_RESULT_ERR_SVR_RESP
#define SMTP_RESULT_ERR_SVR_RESP 6 |
Server responded with an unknown response code
Definition at line 30 of file smtp.h.
◆ SMTP_RESULT_ERR_TIMEOUT
#define SMTP_RESULT_ERR_TIMEOUT 5 |
Connection timed out (server didn't respond in time)
Definition at line 28 of file smtp.h.
◆ SMTP_RESULT_ERR_UNKNOWN
#define SMTP_RESULT_ERR_UNKNOWN 1 |
Unknown error
Definition at line 20 of file smtp.h.
◆ SMTP_RESULT_OK
Email successfully sent
Definition at line 18 of file smtp.h.
◆ SMTPS_DEFAULT_PORT
The default TCP port used for SMTPS
Definition at line 15 of file smtp.h.
◆ smtp_result_fn
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 |
Definition at line 42 of file smtp.h.
◆ smtp_send_mail()
◆ smtp_send_mail_int()
◆ smtp_send_mail_static()
◆ smtp_set_auth()
◆ smtp_set_server_addr()
◆ smtp_set_server_port()