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
20 #define ESMTP_ETRN 0x04
21 #define ESMTP_ATRN 0x08 /* used with ODMR, RFC 2645 */
23 void SMTP_setmode(char);
24 int SMTP_helo(int socket,const char *host);
25 int SMTP_ehlo(int socket,const char *host,int *opt);
26 int SMTP_from(int socket,const char *from,const char *opts);
27 int SMTP_rcpt(int socket,const char *to);
28 int SMTP_data(int socket);
29 int SMTP_eom(int socket);
30 int SMTP_rset(int socket);
31 int SMTP_quit(int socket);
32 int SMTP_ok(int socket);
34 extern char smtp_response[MSGBUFSIZE];