29 const char *
const port,
32 const char *
const cafile){
39 this->throw_bad_status_code();
43 const char *
const user,
44 const char *
const pass){
46 this->throw_bad_status_code();
51 this->throw_bad_status_code();
56 this->throw_bad_status_code();
65 this->throw_bad_status_code();
69 const char *
const value){
71 this->throw_bad_status_code();
79 const char *
const email,
80 const char *
const name){
82 this->throw_bad_status_code();
90 const char *
const path){
92 this->throw_bad_status_code();
98 this->throw_bad_status_code();
102 const void *
const data,
105 this->throw_bad_status_code();
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)
void attachment_add_fp(const char *const name, FILE *fp)
void address_clear_all(void)
enum smtp_status_code smtp_header_add(struct smtp *const smtp, const char *const key, const char *const value)
void auth(enum smtp_authentication_method auth_method, const char *const user, const char *const pass)
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 attachment_add_path(const char *const name, const char *const path)
void attachment_clear_all(void)
SMTPMailException(enum smtp_status_code status_code)
void attachment_add_mem(const char *const name, const void *const data, ssize_t datasz)
void smtp_header_clear_all(struct smtp *const smtp)
void address_add(enum smtp_address_type type, const char *const email, const char *const name)
int status_code_get(void)
void open(const char *const server, const char *const port, enum smtp_connection_security connection_security, enum smtp_flag flags, const char *const cafile)
virtual const char *const what()
void smtp_address_clear_all(struct smtp *const smtp)
smtp_authentication_method
enum smtp_status_code status_code
enum smtp_status_code smtp_address_add(struct smtp *const smtp, enum smtp_address_type type, const char *const email, const char *const name)
void status_code_set(enum smtp_status_code new_status_code)
void mail(const char *const body)
void throw_bad_status_code(void)
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)
SMTPMail class wrapper for smtp-client library.
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)
void header_clear_all(void)
void header_add(const char *const key, const char *const value)