diff options
author | Stanislav Malyshev <stas@php.net> | 2000-08-06 17:49:41 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2000-08-06 17:49:41 +0000 |
commit | 62043b9a7ceb3e6ea8a764f9aa5a509671645f2c (patch) | |
tree | 23a7bfa5c3599c73f6227402952ebc4e0830db19 /win32 | |
parent | 23ebf6e91638d214a82b49ad9973f0101f552908 (diff) | |
download | php-git-62043b9a7ceb3e6ea8a764f9aa5a509671645f2c.tar.gz |
Add Joey Smith's sendmail_port patch
Diffstat (limited to 'win32')
-rw-r--r-- | win32/sendmail.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/win32/sendmail.c b/win32/sendmail.c index c79ef264f1..9344a988c5 100644 --- a/win32/sendmail.c +++ b/win32/sendmail.c @@ -395,6 +395,7 @@ int MailConnect() { int res; + int portnum; /* Create Socket */ if ((sc = socket(PF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET) @@ -412,9 +413,15 @@ int MailConnect() } */ + 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))) |