Skip to content
Newer
Older
100644 52 lines (47 sloc) 1.86 KB
87a491d C++ // comments are evil ...
Hartmut Holzgraefe authored Jun 16, 2000
1 #if !defined(sendmail_h) /* Sentry, use file only if it's not already included. */
aceaabc @zsuraski PHP 4.0
zsuraski authored Apr 7, 1999
2 #define sendmail_h
a53ff6f NetWare related changes/modifications.
Anantha Kesari H Y authored Jan 3, 2003
3 #ifndef NETWARE
aceaabc @zsuraski PHP 4.0
zsuraski authored Apr 7, 1999
4 #include <windows.h>
a53ff6f NetWare related changes/modifications.
Anantha Kesari H Y authored Jan 3, 2003
5 #endif
aceaabc @zsuraski PHP 4.0
zsuraski authored Apr 7, 1999
6
7 #define HOST_NAME_LEN 256
8 #define MAX_APPNAME_LENGHT 100
87286cd - Fix win32 sendmail bug with Cc: in custom header not terminated wit…
Markus Fischer authored May 14, 2002
9 #define MAIL_BUFFER_SIZE (1024*4) /* 4k buffer */
87a491d C++ // comments are evil ...
Hartmut Holzgraefe authored Jun 16, 2000
10 /* Return values */
87286cd - Fix win32 sendmail bug with Cc: in custom header not terminated wit…
Markus Fischer authored May 14, 2002
11 #define MIN_ERROR_INDEX 0 /* Always 0 like SUCCESS */
12 #define SUCCESS 0
13 #define FAILED_TO_PARSE_ARGUMENTS 1
14 #define FAILED_TO_OPEN_MAILFILE 2
15 #define FAILED_TO_START_SOCKETS 3
16 #define FAILED_TO_RESOLVE_HOST 4
17 #define FAILED_TO_OBTAIN_SOCKET_HANDLE 5
18 #define FAILED_TO_CONNECT 6
19 #define FAILED_TO_SEND 7
20 #define FAILED_TO_RECEIVE 8
21 #define SMTP_SERVER_ERROR 9
22 #define FAILED_TO_GET_HOSTNAME 10
23 #define OUT_OF_MEMORY 11
24 #define UNKNOWN_ERROR 12
25 #define BAD_MSG_CONTENTS 13
26 #define BAD_MSG_SUBJECT 14
27 #define BAD_MSG_DESTINATION 15
28 #define BAD_MSG_RPATH 16
29 #define BAD_MAIL_HOST 17
30 #define BAD_MSG_FILE 18
31 #define W32_SM_SENDMAIL_FROM_NOT_SET 19
32 #define W32_SM_SENDMAIL_FROM_MALFORMED 20
6c6ac37 - Headers are now rewritten to always have \r\n line endings for SMTP.
Markus Fischer authored Jun 5, 2002
33 #define W32_SM_PCRE_ERROR 21
34 #define MAX_ERROR_INDEX 22 /* Always last error message + 1 */
aceaabc @zsuraski PHP 4.0
zsuraski authored Apr 7, 1999
35
36
819b2e5 @fmk Exporting symbols used in the imap extension
fmk authored Dec 8, 2003
37 PHPAPI int TSendMail(char *smtpaddr, int *returnerror, char **error_message,
57ec066 @fmk Switch from imap_sendmail.* to sendmail.c under Win32
fmk authored Jul 2, 2002
38 char *RPath, char *Subject, char *mailTo, char *data,
df5cfe2 - Fixed bug #29334 (mail() provides incorrect message time header)
foobar authored Aug 7, 2005
39 char *mailCc, char *mailBcc, char *mailRPath TSRMLS_DC);
819b2e5 @fmk Exporting symbols used in the imap extension
fmk authored Dec 8, 2003
40 PHPAPI void TSMClose(void);
df5cfe2 - Fixed bug #29334 (mail() provides incorrect message time header)
foobar authored Aug 7, 2005
41 static int SendText(char *RPath, char *Subject, char *mailTo, char *mailCc, char *mailBcc, char *data,
42 char *headers, char *headers_lc, char **error_message TSRMLS_DC);
819b2e5 @fmk Exporting symbols used in the imap extension
fmk authored Dec 8, 2003
43 PHPAPI char *GetSMErrorText(int index);
aceaabc @zsuraski PHP 4.0
zsuraski authored Apr 7, 1999
44
df5cfe2 - Fixed bug #29334 (mail() provides incorrect message time header)
foobar authored Aug 7, 2005
45 static int MailConnect();
46 static int PostHeader(char *RPath, char *Subject, char *mailTo, char *xheaders TSRMLS_DC);
47 static int Post(LPCSTR msg);
48 static int Ack(char **server_response);
49 static unsigned long GetAddr(LPSTR szHost);
5d017c3 @pierrejoye - silent warning (fix for #28038)
pierrejoye authored Aug 26, 2009
50 static int FormatEmailAddress(char* Buf, char* EmailAddress, char* FormatString);
87a491d C++ // comments are evil ...
Hartmut Holzgraefe authored Jun 16, 2000
51 #endif /* sendmail_h */
Something went wrong with that request. Please try again.