2 * smtp.h -- prototypes for smtp handling code
4 * For license terms, see the file COPYING in this directory.
10 #define SMTPBUFSIZE 256
12 /* SMTP error values */
15 #define SM_UNRECOVERABLE 129
17 /* ESMTP extension option masks (not all options are listed here) */
18 #define ESMTP_8BITMIME 0x01
19 #define ESMTP_SIZE 0x02
21 int SMTP_helo(FILE *sockfp,char *host);
22 int SMTP_ehlo(FILE *sockfp,char *host,int *opt);
23 int SMTP_from(FILE *sockfp,char *from,char *opts);
24 int SMTP_rcpt(FILE *sockfp,char *to);
25 int SMTP_data(FILE *sockfp);
26 int SMTP_eom(FILE *sockfp);
27 int SMTP_quit(FILE *sockfp);
28 int SMTP_ok(FILE *sockfp);