cvs: php4 /win32 sendmail.c

From: Date: Sun, 06 Aug 2000 17:49:41 +0000
Subject: cvs: php4 /win32 sendmail.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1065@lists.php.net to get a copy of this message
stas Sun Aug 6 10:49:41 2000 EDT Modified files: /php4/win32 sendmail.c Log: Add Joey Smith's sendmail_port patch Index: php4/win32/sendmail.c diff -u php4/win32/sendmail.c:1.16 php4/win32/sendmail.c:1.17 --- php4/win32/sendmail.c:1.16 Thu Aug 3 21:49:45 2000 +++ php4/win32/sendmail.c Sun Aug 6 10:49:41 2000 @@ -395,6 +395,7 @@ { int res; + int portnum; /* Create Socket */ if ((sc = socket(PF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET) @@ -412,9 +413,15 @@ } */ + if (INI_INT("sendmail_port")){ + portnum = INI_INT("sendmail_port")); + } else { + portnum = 25; + } + /* Connect to server */ sock_in.sin_family = AF_INET; - sock_in.sin_port = htons(25); + sock_in.sin_port = htons(portnum); sock_in.sin_addr.S_un.S_addr = GetAddr(MailHost); if (connect(sc, (LPSOCKADDR) & sock_in, sizeof(sock_in)))

« previous php.cvs (#1065) next »