<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:f_regular;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-ZA link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>HI All,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>We recently moved our email server from an in-house server to Office 365.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>We are now in the process of replacing all our XP boxes with Windows 10.  One of the boxes are running the email service which collects emails from Office 365, that we have just recently upgraded.  This process works on the XP but times out on windows 10.  <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Attached, is the time out the log file.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Below is the code I am using:  Basic program code<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>* variables<o:p></o:p></p><p class=MsoNormal>               ChannelNo                                        = 0<o:p></o:p></p><p class=MsoNormal>               Pop3Server                                       = 'outlook.office365.com'<o:p></o:p></p><p class=MsoNormal>               Pop3User                                          = UserName<o:p></o:p></p><p class=MsoNormal>               Pop3Pass                                           = Password<o:p></o:p></p><p class=MsoNormal>               Pop3Port                                           = '995'<o:p></o:p></p><p class=MsoNormal>               ProxYServer                                      = '127.0.0.1'<o:p></o:p></p><p class=MsoNormal>               ProxyPort                                          = '110'<o:p></o:p></p><p class=MsoNormal>               ProxyDir                                             = 'C:\see4OI\SSL\'<o:p></o:p></p><p class=MsoNormal>               ProxyExe                                           = 'stunnel.exe'<o:p></o:p></p><p class=MsoNormal>               ProxyCert                                          = 'stunnel.pem'<o:p></o:p></p><p class=MsoNormal>               <o:p></o:p></p><p class=MsoNormal>* retreives mail in MIME format<o:p></o:p></p><p class=MsoNormal>               Gosub GET_EMAILS<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>return Mail_Rec<o:p></o:p></p><p class=MsoNormal>* -----------------------------------------------------------------------------------------<o:p></o:p></p><p class=MsoNormal>GET_EMAILS:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>* close previous session If it wasnt closed properly             <o:p></o:p></p><p class=MsoNormal>               Code = seeClose(ChannelNo)<o:p></o:p></p><p class=MsoNormal>               Code = seeRelease()<o:p></o:p></p><p class=MsoNormal>               <o:p></o:p></p><p class=MsoNormal>* attach key code             <o:p></o:p></p><p class=MsoNormal>               Code = seeAttach(1, KeyCode)<o:p></o:p></p><p class=MsoNormal>               if Code < 0 then<o:p></o:p></p><p class=MsoNormal>                              RetFlag = 1<o:p></o:p></p><p class=MsoNormal>                              return<o:p></o:p></p><p class=MsoNormal>               end<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>* start stunnel<o:p></o:p></p><p class=MsoNormal>               Code = seeSetProxySSL(0, 1, ProxyDir, ProxyCert, ProxyExe)<o:p></o:p></p><p class=MsoNormal>               If Code < 0 Then<o:p></o:p></p><p class=MsoNormal>                              RETURN<o:p></o:p></p><p class=MsoNormal>               end<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>* connect to email server              <o:p></o:p></p><p class=MsoNormal>               Code = seePop3ConnectSSL(ChannelNo, ProxyPort, Pop3Port, Pop3Server, Pop3User, Pop3Pass, ProxyServer)<o:p></o:p></p><p class=MsoNormal>    If Code < 0 Then<o:p></o:p></p><p class=MsoNormal>                              RETURN<o:p></o:p></p><p class=MsoNormal>               End<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Your assistance in this regard will be highly appreciated.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thank you.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Kind Regards,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='mso-fareast-language:EN-ZA'><img width=239 height=50 id="Picture_x0020_1" src="cid:image002.jpg@01D3E602.8DCECDE0" alt=Logicore><o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-ZA'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-ZA'>SEDICK CLOETE<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-ZA'>IT Business Consultant<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-ZA'>Cell:     083 228 7058<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-ZA'>Fax:     086 515 9695<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-ZA'>email: sedick@logicore.co.za<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-ZA'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:9.5pt;font-family:f_regular;color:black;letter-spacing:-.4pt;background:white;mso-fareast-language:EN-ZA'>If you are not the intended recipient of this communication, please notify the sender immediately. The information and/or attachment contained in this email is confidential and may contain proprietary and/or personal information. It is meant solely for the intended recipient. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any processing of the email or the information contained therein (including disclosure, copying, distribution, storage) or any action taken or omitted in reliance on this, is prohibited and may be unlawful. </span><span style='mso-fareast-language:EN-ZA'><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>