mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
PHP 4.0
This commit is contained in:
parent
d94f3e22ae
commit
aceaabceff
189 changed files with 43488 additions and 0 deletions
46
win32/sendmail.h
Normal file
46
win32/sendmail.h
Normal file
|
@ -0,0 +1,46 @@
|
|||
#if !defined(sendmail_h) // Sentry, use file only if it's not already included.
|
||||
#define sendmail_h
|
||||
#include <windows.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(LPCSTR);
|
||||
int Ack();
|
||||
unsigned long GetAddr(LPSTR szHost);
|
||||
|
||||
|
||||
|
||||
#endif // sendmail_h
|
Loading…
Add table
Add a link
Reference in a new issue