#define MAX_MAIL_RCPTS 4
#define MAIL_RCPT_TYPE 0x03
#define MAIL_RCPT_TO 0x01
#define MAIL_RCPT_CC 0x02
#define MAIL_RCPT_BCC 0x03
#define MAIL_RCPT_ACPT 0x20
#define MAIL_RCPT_SENT 0x40
#define MAIL_RCPT_FAIL 0x80
#define MAIL_RCPT_DONE
#define SMTP_BUFSIZ 256
#define SMTPFEAT_VINTAGE 0x00000001
#define SMTPFEAT_AUTH_LOGIN 0x00000002
#define SMTPFEAT_AUTH_PLAIN 0x00000004
struct _MAILENVELOPE | |
{ | |
time_t mail_date; | |
char* mail_from; | |
char* mail_from_header; | |
char* mail_subj; | |
char* mail_body; | |
char* mail_rcpt[4]; | |
char* mail_rcpt_header[4]; | |
uint8_t mail_rcpt_stat[4]; | |
} |
struct _SMTPCLIENTSESSION | |
{ | |
TCPSOCKET* smtp_sock; | |
FILE* smtp_stream; | |
uint32_t smtp_feat; | |
char smtp_buff[256]; | |
} |