Some tweaks to SMTP auth to allow a site-wide user/pass override
authorebullient <ebullient@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 4 Jan 2004 06:11:15 +0000 (06:11 +0000)
committerebullient <ebullient@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 4 Jan 2004 06:11:15 +0000 (06:11 +0000)
commit9bd3b1e61b35fd25ed9d724571004a80b9f8ab2c
tree14510124bd84aebd1605cb94ab357d0ced598189
parent691c519e4f8a4f047993ddb4cd8a8d0d38ba8463
Some tweaks to SMTP auth to allow a site-wide user/pass override
(for those of us with a home installation that want to go out
using the ISP's SMTP server because people arbitrarily block
our dynamic IP addresses).

new function in auth.php assigns the correct user/pass values
based on the auth mechanism.

For some reason the initStream method in Deliver_SMTP was not using
the passed in user name, it was using the global $username, and had
the key and onetimepad declared, though it always used the passed in
parameter pass instead - cleaned that up so it used the user/pass values
passed in instead.

read_body and compose were updated to use the new function in auth.php
to get the correct username and password for SMTP auth, and pass these
values to initStream.

Works for me.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6369 7612ce4b-ef26-0410-bec9-ea0150e637f0
class/deliver/Deliver_SMTP.class.php
functions/auth.php
src/compose.php
src/read_body.php