15 #include <sys/types.h> 23 # define SIZE_MAX ((size_t)(-1)) 249 const char *
const port,
268 const char *
const user,
269 const char *
const pass);
293 const char *
const body);
370 const char *
const key,
371 const char *
const value);
400 const char *
const email,
401 const char *
const name);
425 const char *
const name,
426 const char *
const path);
442 const char *
const name,
462 const char *
const name,
463 const void *
const data,
479 #ifdef SMTP_INTERNAL_DEFINE enum smtp_status_code smtp_close(struct smtp *smtp)
const char * smtp_status_code_errstr(enum smtp_status_code status_code)
enum smtp_status_code smtp_status_code_set(struct smtp *const smtp, enum smtp_status_code new_status_code)
enum smtp_status_code smtp_attachment_add_mem(struct smtp *const smtp, const char *const name, const void *const data, size_t datasz)
enum smtp_result_code code
enum smtp_status_code smtp_header_add(struct smtp *const smtp, const char *const key, const char *const value)
enum smtp_status_code smtp_mail(struct smtp *const smtp, const char *const body)
enum smtp_status_code smtp_attachment_add_path(struct smtp *const smtp, const char *const name, const char *const path)
void smtp_attachment_clear_all(struct smtp *const smtp)
void smtp_header_clear_all(struct smtp *const smtp)
enum smtp_status_code smtp_status_code_clear(struct smtp *const smtp)
void smtp_address_clear_all(struct smtp *const smtp)
smtp_authentication_method
enum smtp_status_code smtp_address_add(struct smtp *const smtp, enum smtp_address_type type, const char *const email, const char *const name)
enum smtp_status_code status_code
enum smtp_status_code smtp_auth(struct smtp *const smtp, enum smtp_authentication_method auth_method, const char *const user, const char *const pass)
enum smtp_status_code smtp_attachment_add_fp(struct smtp *const smtp, const char *const name, FILE *fp)
enum smtp_status_code smtp_status_code_get(const struct smtp *const smtp)
enum smtp_status_code smtp_open(const char *const server, const char *const port, enum smtp_connection_security connection_security, enum smtp_flag flags, const char *const cafile, struct smtp **smtp)