|
sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
|
Go to the source code of this file.
Classes | |
| struct | smtp_send_request |
Macros | |
| #define | SMTP_DEFAULT_PORT LWIP_IANA_PORT_SMTP |
| #define | SMTPS_DEFAULT_PORT LWIP_IANA_PORT_SMTPS |
| #define | SMTP_RESULT_OK 0 |
| #define | SMTP_RESULT_ERR_UNKNOWN 1 |
| #define | SMTP_RESULT_ERR_CONNECT 2 |
| #define | SMTP_RESULT_ERR_HOSTNAME 3 |
| #define | SMTP_RESULT_ERR_CLOSED 4 |
| #define | SMTP_RESULT_ERR_TIMEOUT 5 |
| #define | SMTP_RESULT_ERR_SVR_RESP 6 |
| #define | SMTP_RESULT_ERR_MEM 7 |
Typedefs | |
| typedef void(*) | smtp_result_fn(void *arg, u8_t smtp_result, u16_t srv_err, err_t err) |
Functions | |
| 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) |
| #define SMTP_DEFAULT_PORT LWIP_IANA_PORT_SMTP |
| #define SMTP_RESULT_ERR_CLOSED 4 |
| #define SMTP_RESULT_ERR_HOSTNAME 3 |
| #define SMTP_RESULT_ERR_SVR_RESP 6 |
| #define SMTP_RESULT_ERR_TIMEOUT 5 |
| #define SMTPS_DEFAULT_PORT LWIP_IANA_PORT_SMTPS |
| typedef void(*) smtp_result_fn(void *arg, u8_t smtp_result, u16_t srv_err, err_t err) |
Prototype of an smtp callback function
| 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 |