blob: a6c4a34b193e2c05e86ffc36a4e5bc8ee36d4d14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef BOKF_SMTP_H
#define BOKF_SMTP_H
#include <stddef.h>
struct smtp_message {
const char *host;
int port;
const char *security; /* "tls" (implicit), "starttls", "plain" */
const char *user; /* NULL/empty = no AUTH */
const char *password;
const char *from; /* envelope + From address */
const char *from_name; /* display name, may be NULL */
const char *to;
const char *subject;
const char *body; /* UTF-8 text body */
const char *attach_name; /* NULL -> text-only */
const unsigned char *attach;
size_t attach_len;
};
int smtp_send(const struct smtp_message *m, char *err, size_t errlen);
#endif
|