Question : Outlook 2010 and Exchange SMTP Authentication

Hi All

I have just installed Office 2010, I have 3 different accounts on 3 different servers, all of which are POP / SMTP. I then authenticate with the relevant SMTP server when sending mail using the same login settings as the POP account.

My problem is that the 2 accounts I have on exchange servers WILL NOT auth the SMTP, it rejects the login details, yet accepts them for POP. The other server is hMail and works fine....

One exhange server is 2003 SBS, the other is 2008 STD.

Any ideas?

Thanks

Kerry

Answer : Outlook 2010 and Exchange SMTP Authentication

I'd forgotten hex to float is not as simple as it seems.   Here's a very rough version of that function that seems to work for me. But disclaimer, it's _not_ highly tested ... and I'm sure it could be improved ;-)

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
<cfscript>
    function hexToFloat(hexStr)
    {
    	// convert to binary. pad with leading zeros
    	var bin = right(repeatString("0", 32) & FormatBaseN(InputBaseN(hexStr, 16), 2), 32);
        var sign = left(bin, 1);
        var exp = "";
        var man = "";
        var offset = "";

        if (sign == 1) {
        	offset = -1;
        }
        else {
        	offset = 1;
        }
        
        exp = InputBaseN(mid(bin, 2, 8), 2) - 127;
        man = BitSHLN(2, 22) + InputBaseN(mid(bin, 10, 23), 2);
        dec = man * (2 ^(exp - 23)) * offset;
        return dec;
    }
</cfscript>
Random Solutions  
 
programming4us programming4us