summaryrefslogtreecommitdiff
path: root/netware
diff options
context:
space:
mode:
authorAnantha Kesari H Y <hyanantha@php.net>2002-09-06 07:32:34 +0000
committerAnantha Kesari H Y <hyanantha@php.net>2002-09-06 07:32:34 +0000
commit15bf7382c2053e5b3bfe7142f55b424254e85677 (patch)
treefced765dad42b43f9299ce0767ce21d10023e489 /netware
parenta270b1829ef6c9693f5d756628f89faa56dc5d81 (diff)
downloadphp-git-15bf7382c2053e5b3bfe7142f55b424254e85677.tar.gz
Main functions declarations for NetWare
Diffstat (limited to 'netware')
-rw-r--r--netware/sendmail.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/netware/sendmail.h b/netware/sendmail.h
new file mode 100644
index 0000000000..2a1a2b734b
--- /dev/null
+++ b/netware/sendmail.h
@@ -0,0 +1,47 @@
+
+#if !defined(SENDMAIL_H) /* Sentry, use file only if it's not already included. */
+#define SENDMAIL_H
+
+
+#define HOST_NAME_LEN 256
+#define MAX_APPNAME_LENGHT 100
+#define MAX_ERROR_INDEX 17
+#define MIN_ERROR_INDEX 0
+#define MAIL_BUFFER_SIZE (1024*4) /* 4k buffer */
+
+/* Return values */
+#define SUCCESS 0
+#define FAILED_TO_PARSE_ARGUMENTS 1
+#define FAILED_TO_OPEN_MAILFILE 2
+#define FAILED_TO_START_SOCKETS 3
+#define FAILED_TO_RESOLVE_HOST 4
+#define FAILED_TO_OBTAIN_SOCKET_HANDLE 5
+#define FAILED_TO_CONNECT 6
+#define FAILED_TO_SEND 7
+#define FAILED_TO_RECEIVE 8
+#define SMTP_SERVER_ERROR 9
+#define FAILED_TO_GET_HOSTNAME 10
+#define OUT_OF_MEMORY 11
+#define UNKNOWN_ERROR 12
+#define BAD_MSG_CONTENTS 13
+#define BAD_MSG_SUBJECT 14
+#define BAD_MSG_DESTINATION 15
+#define BAD_MSG_RPATH 16
+#define BAD_MAIL_HOST 17
+#define BAD_MSG_FILE 18
+
+
+int TSendMail(char *smtpaddr, int *returnerror,
+ char *RPath, char *Subject, char *mailTo, char *data);
+void TSMClose(void);
+int SendText(char *RPath, char *Subject, char *mailTo, char *data, char *headers);
+char *GetSMErrorText(int index);
+
+int MailConnect();
+int PostHeader(char *, char *, char *, char *);
+int Post(char *);
+int Ack();
+unsigned long GetAddr(char * szHost);
+
+
+#endif /* SENDMAIL_H */