31 fp = fopen(
"test/config/test_email.txt",
"r");
34 bytes_read = fread(email,
sizeof(*email), emailsz, fp);
35 assert(bytes_read > 0);
37 email[bytes_read - 1] =
'\0';
79 "SMTP Test: Build Without OpenSSL");
83 "This email tests the build without OpenSSL compiled into" enum smtp_status_code smtp_close(struct smtp *smtp)
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)
static void test_nossl_smtp(void)
static void load_test_email(char *const email, size_t emailsz)
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 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)