ࡱ> GRoot Entry FZO~j P~WordDocumentHCompObjjSummaryInformation(I  !"#$%&'()*+,-./UNOPQRSTVWXYZ[\]^_`abcdefghi@!@@RK@BP~ 4P՜.+,0HPdlt |  Brattberg) EsRas ActiveX control FMicrosoft Word Document MSWordDocWord.Document.69qOh+'0 ( P \ h tEsRas ActiveX controlcE Ake HedmanSH Normale Ake Hedman28Microsoft Word for Windows 95Root Entry FZO~ P~WordDocumentCompObjjSummaryInformation(I0  !"#$%&'()*+,-./U12345789:;<=>?@ABVWXYZ[\6ܥhW $eEdEazz{{{{{{{{{{{{.{d"|8|8|8|8|8|S|o|giii1nBXm=`Q{|368|8|||`т{{8|"|ттт|R{8|{8|g P~*{>h{h{{{{|gттEsPop ActiveX control Ake Hedman Brattberg, Gruvbyn 415, S-820 50 LOOS, Sweden (ah@brattberg.se) (http://www.ljusdal.se/esource)  SAVEDATE \* MERGEFORMAT 96-07-09 13:27 rev A This control encapsulates the POP3 protocol and compile with MIME version 1OP server the NumOfMsg property contains the number of messages that is available on the server. The total size in bytes for all of these messages is available in the TotMsgSize property. Number_Of_Messages = EsPop1.NumOfMsg Total_Size = EsPop1.TotMsgSize Get a specific message from the server You use the GetMail method to retrieve a message from the POP server. The argument you give to this function should be the message number you want to get. The first message is numbered one (NOT zero) and the last message has the same index as the value in the NumOfMsg property. MessagePath is another property that is important for message retrieval. Retrieved messages are always put in a temporary file. This file is defined by the MessagePath property. If you call GetMail without specifying a path a file is created for you in the windows temporary file directory and you can check this property after a successful message fetch to get the location and name of the file. If you want you can also set this property to a value before you call the MessagePath method. In this case the fetched message is stored at the end of that file and with a blank line separating multiple messages. Normal sized messages, that is with a size less than 32768, are also stored in there raw form in the Message property. By using a file for message storage there is no upper limit to the size of the messages that you can fetch. This means that there is no problem to get messages that contain large file attachments. There is one problem though if you receive small messages and only use the message property to work with messages because you always also get the temporary file. There is two ways around this problem. Use the DeleteTempFile method after using GetMail to delete the temporary file. The index used for DeleteTempFile should be the same as you used in the GetMail call. Set the MessagePath property to a valid filename/path when you start your mail session. Leave this file as a backup or delete it after each mail session. The following sample get message 3 from a POP server, deletes it and displays the message in a message box. This is only done for if it is a small message. nMsgNo = 3 if ( EsPop1.GetMessageSize(nMsgNo) < 32768 ) then if ( EsPop1.GetMail(nMsgNo) ) then Delete the temporary file EsPop1.DeleteTempFile(nMsgNo) Delete the message at the server EsPop1.DeleteMail(nMsgNo) Display message msgbox EsPop1.Message else Here we have an error ErrorNo contains the error code endif endif Note that there is no need to delete the messages on the server. If you dont do this the message will be available on the server the next time you connect. Also if you delete messages and then call the Reset method the message delete is canceled. Using the status event During lengthy operations the status event is a useful tool to inform your user about the progress of the work. If for instance you are downloading a large letter consisting of several big attachments you need a way to inform your customers of the state of things. The status event is your tool to do this. At a start of a message download a status event with progress set to 0 is generated. You can directly feed this value to the gauge of your choice. Then during the message download you get status events with progress set to a number that represents the percentage of work done. And finally when all of the message is received a status event with progress set to 100 will be fired. Telling you or the user that all of the work with this message has been done. The event procedure thus normally have this simple form Private Sub EsPop1_Status(ByVal progress As Integer) ProgressBar1.Value = progress End Sub Properties short ErrorNo Read only. The error code from the last operation. String Message Read only. If a message has a size less than 32768 bytes you will have the raw message here as well as in the temporary file (or the file/path you specify) given by the messagepath property. String MessagePath Messagepath is the path to a temporary file used to hold a received message or multiple messages. This temporary file is created on the fly if the property messagepath is empty when the getmail method is called.. If messagepath contains a path to a file that does not exist this file is created and the message is saved in the file. If messagepath points to a file which exists the message is saved at the end of this file with a blank line separating messages. Short NumOfMsg This property contains the Number of messages waiting on the POP server. String POPServerIP The IP address of the POP server on the form 192.34.12.44 You can obtain this address from a hostadress of the form mailhost.your.domain.com by using our control essock to resolve the address. This property is persistent and is saved with your control so you can set it once and for all in the property window. String Password The password used to access a POP-account. Long TimeOut This is the Time-out, in milliseconds, used when receiving data from the POP-server. long TotMsgSize This is the total size in bytes of all messages for the user on the POP-server. String Username The user name used to access a POP-account. Methods BOOL DeleteMail(index) Delete mail with identifier index on the POP server. BOOL DeleteTempFile(index) Removes a temporary file typically created after a received message. BOOL GetMail(short index) Retrieves mail with identifier index from the pop-server. Note that the first message has index=1. The message is saved in a temporary file. This temporary file is created on the fly if the property messagepath is empty. If messagepath contains a path to a file that does not exist this file is created and the message is saved in the file. If messagepath points to a file which exists the message is saved at the end of this file with a blank line separating messages. The status events is triggered to give information about progress during the mail fetch. String GetMailList() With this function you can get the raw list of mailmessages waiting at the POP server as obtained by the LIST POP command. See also the method GetMailStatus which get the individual message size. String GetMailStatus() With this method you can get the output from the STATUS POP command. It is in its raw form as cnt totsize where cnt is equal to the number of messages and totsize is the total size of all messages available for the user. long GetMessageSize(short index) With this method you can get the size in bytes for a specific mail message. BOOL Logoff() Terminate a session with a POP server. BOOL Logon() Connect to a POP server. BOOL Reset() Send the RESET POP command. If you have deleted messages on the server you now get access to them again. Events status(short progress) Status gives progress information when certain operations is in progress. This can be useful when you need to inform a user about the progress and what is happening during lengthy operations. The progress is directly expressed is percentage of the task completed. A task is always started with an event where progress=0 and ended with an event where progress = 100. Getmail and Extract are methods which trigger this event. Where to get the control? It is possible that you are reading this documentation without having access to the control itself. If you have Internet access you just need to connect to http://www.ljusdal.se/esource and fetch a fully working sample of the control. At this location you can also find samples on how to use the control. We can email the control anywhere in the world if you send us a request to do so. Please state if you want MIME or BINHEX coding. Send the request to f0002@brattberg.se Register this control & Pricing When you register the control we will send you the EsPop.lic file which will make the splash screen go away. If you are entitled to a free registration, (please read our license agreement later in this document to find out if you are) , you have to fill in the form available at http://www.ljusdal.se/esource to receive the EsPop.lic file and get your free license. Note that the free license does not allow you to get support or distribute applications made with the control unless these also are made available free of charge or is used within your nonprofit organization. If you are not entitled for a free licens you have to pay for the control. This could be done in several ways. You can register with a credit card. We work together with PsL on this and here is how you go ahead: Note that this option is for CREDIT CARD ORDERS ONLY. EsPop has Item Number 14605 at PsL. You can order with MC, Visa, Amex, or Discover from Public (software) Library by calling (USA) 800-2424-PsL or (USA) 713-524-6394 or by FAX to (USA) 713-524-6398 or by CIS Email to 71355,470 Internet email to 71355,470@compuserv.com. You can also mail credit card orders to PsL at P.O.Box 35705, Houston, TX 77235-5705, USA. THE ABOVE NUMBERS ARE FOR CREDIT CARD ORDERS ONLY. BRATTBERG CANNOT BE REACHED AT THESE NUMBERS. Any questions about the status of the shipment of the order, refunds, registration options, product details, technical support, volume discounts, dealer pricing, site licenses, non-credit card orders, etc, must be directed to Brattberg, Gruvbyn 415A, S-820 50 LOOS, Sweden Phone: +46 657 10620, Fax: +46 657 105 13 email: f0002@brattberg.se or by use of on-line facilities at http://www.ljusdal.se/esource. To insure that you get the latest version, PsL will notify us the day of your order and we will ship the EsPop directly to you. If you take the option of email-shipping you will usually have the licensed control the same day. You can also make this registration online via you web-browser. The URL: is http://206.109.101.6/cgi-win/psl_ord.exe/ITEM14605 or follow the links at http://www.ljusdal.se/esource/EsPop You can also go to http://206.109.101.6/register.htm and look up EsPop to make your online registration. But for the last time. This is only for Credit card orders. We can invoice your organisation. Some, mostly larger, companies need an invoice before they can make any financial transactions . We can handle this situation as well. Just send us a fax ( +46 657 10513) or email (f0002@brattberg.se) or use the online facilities at http://www.ljusdal.se/esource or send a mail to Brattberg, Gruvbyn 415A, S-820 50 LOOS, Sweden to place your order. We will add a Invoice fee (Currently $10) and sails tax (if you are located within the European Community) to your order. You get a credit of 30 days. We usually ship the control the same day we receive your order. You can send us a check. If you send us a check it should be made payable to Brattberg, Gryvbyn 415A, S-820 50 LOOS, Sweden. Please add $5 to the total amount of your order if you use this option. If you fax us a copy of your check we will ship the control to you (just email) the same day we receive the fax. You can make a bank transfer to us. There are several options you can use for this kind of transfer. You can make a SWIFT transfer to FOBA SES 7759-15-01828. You can use our Banktransfer account (Bankgiro in Swedish) which is 5321-5117 You can send money in an envelop. Put the money for the control in an envelop and post to us. This works most of the time but the risk is yours not ours. Registration Fees EsPop Control $12 You get access to all versions of a control under one year. This means that a control that is published as 16-bit/32-bit ActiveX (OCX) and 16-bit/32-bit DLL and a VBX are all covered by this registration fee. You also get free support. Brattberg Control Subscription $150 Yes its only $150! This option gives you all controls and all source produced in our company for one year. You also get support as if you bought each of the controls. Traditional media (Diskette) $10 We ship anywhere in the world with World-wide First Class/Airmail if you select this option. The only media supported is 3.5 diskettes. Additional information we want from you when you place an order: If you want your control to be sent to you by email we need your email address. We also want to know if you prefer MIME (base64) or BINHEX coding of the control attachment. You can get access to a protected directory on our WWW-server where you can fetch your registered control. If you want this option please state so in your order. If you want to be added to the EsPop mailing list please state so. This is the official support channel for EsPop. If you want to be added to the EsPop auto distribution list please state so. By participating in this option you get all updates of the EsPop control automatically sent to you as soon as they are available. Mailing Lists & Support You can get support by sending email to f0002@ljusdal.se. You can also find relevant information on-line at http://www.ljusdal.se/esource We also have set up mailinglists for all of our controls. If you want to subscribe to the EsPop mailinglist send a letter to EsPop-request@ljusdal.se with subscribe as your subject. This will make you a subscriber of this list. You can also send a letter with help as the subject to get more information. To unsubscribe to the list just send a letter with unsubscribe as the subject. After a subscribing to a list you can send your comments, questions etc. to EsPop@ljusdal.se. EsPop and EsSmtp is also available in the combined control EsMail. This control also have its own mailinglist with the addresses EsMail-request@ljusdal.se and EsMail@ljusdal.se. We also have mailinglists for all other controls and brattberg@ljusdal.se which contains news about our company and our products. This is news about controls, the company, new technologies and other things we think can be of interest to our customers and partners. If you want to subscribe send a letter to brattberg-request@ljusdal.se with subscribe as your subject. activex@ljusdal.se which contains news information about the ActiveX technology and our ActiveX controls. If you want to subscribe send a letter to activex-request@ljusdal.se with subscribe as your subject. vbx@ljusdal.se which contains news information about the VBX technology and our VBX controls. If you want to subscribe send a letter to activex-request@ljusdal.se with subscribe as your subject dll@ljusdal.se which contains news information about our DLL controls. If you want to subscribe send a letter to activex-request@ljusdal.se with subscribe as your subject You can find forms for subscribing to the mailinglists at http://www.ljusdal.se/esource We also check the newsgroup comp.lang.basic.visual.3rdparty on a regular basis and will try to help on all questions posted there we also check the relevant newsgroups at the Microsoft news server from time to time. How to contact us If you need to contact us the preferred way is through email. Please send a mail to f0002@brattberg.se If you want to use phone please call us at +46 657 10620 and if you want to fax us please use +46 657 105 13. If you want to send a snailmail you can send it to BRATTBERG Gruvbyn 415A S-820 50 LOOS Sweden License We have a very liberal license policy so please read the license agreement text below . You are not allowed to use this control for other then evaluation purposes without register it with us. But if you are a student or involved in a non-profit organization there is no registration fee. Please read the license agreement to find out if you are entitled to a free registration or not. If you intend to use the control in a commercial organization or want to develop an application which you intend to sell you will find that the license cost is very moderate. Brattberg License agreement =========================== BY USING OR INSTALLING THIS PRODUCT, YOU ARE CONSENTING TO BE BOUND BY AND ARE BECOMING A PARTY TO THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS AGREEMENT, PLEASE DESTROY ALL COPIES YOU HAVE OF THE PRODUCT AND REMOVE IT FROM YOUR COMPUTER. BRATTBERG END USER LICENSE AGREEMENT NO FEE VERSION REDISTRIBUTION ENCOURAGED GRANT. Brattberg ("Brattberg") hereby grants you a non-exclusive license to use its accompanying software product ("Software") free of charge if (a) you are a student, faculty member or staff member of an educational institution (K-12, junior college or college) or an employee of a charitable non-profit organisation; or (b) your use of the Software is for the purpose of evaluating whether to purchase an ongoing license to the Software. The evaluation period for use by or on behalf of a commercial entity is limited to 90 days; evaluation use by others is not subject to this restriction. Government agencies are not considered charitable non-profit organisations for purposes of this license agreement. If you do not fit within the description above, a license fee is due to Brattberg and no license is granted. If you are using the Software free of charge, you will not be entitled to support or telephone assistance. If you fit within the above description, you may: use the Software on any single computer; use the Software on a second computer so long as the first and second computers are not used simultaneously; or copy the Software for archival purposes, provided any copy must contain all of the original Software's proprietary notices. You may not: permit other individuals to use the Software except under the terms listed above; modify, translate, reverse engineer, decompile, disassemble (except to the extent applicable laws specifically prohibit such restriction), or create derivative works based on the Software; copy the Software (except for back-up purposes); rent, lease, transfer or otherwise transfer rights to the Software; or remove any proprietary notices or labels on the Software. SOFTWARE. If you receive your first copy of the Software electronically, and a second copy on media, the second copy may be used for archival purposes only. This license does not grant you any right to any enhancement or update. TITLE. Title, ownership rights, and intellectual property rights in and to the Software shall remain in Brattberg and/or its suppliers. The Software is protected by the copyright laws of Sweden and international copyright treaties. Title, ownership rights, and intellectual property rights in and to the content accessed through the Software is the property of the applicable content owner and may be protected by applicable copyright or other law. This License gives you no rights to such content. DISCLAIMER OF WARRANTY. Since the Software is provided free of charge, the Software is provided on an "AS IS" basis, without warranty of any kind, including without limitation the warranties of merchantability, fitness for a particular purpose and non-infringement. The entire risk as to the quality and performance of the Software is borne by you. Should the Software prove defective, you and not Brattberg assume the entire cost of any service and repair. In addition, the security mechanism implemented by the Software has inherent limitations, and you must determine that the Software sufficiently meets your requirements. This disclaimer of warranty constitutes an essential part of the agreement. SOME COUNTRIES DO NOT ALLOW EXCLUSIONS OF AN IMPLIED WARRANTY, SO THIS DISCLAIMER MAY NOT APPLY TO YOU AND YOU MAY HAVE OTHER LEGAL RIGHTS THAT VARY FROM COUNTRY TO COUNTRY OR BY JURISDICTION. LIMITATION OF LIABILITY. UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, TORT, CONTRACT, OR OTHERWISE, SHALL BRATTBERG OR ITS SUPPLIERS OR RESELLERS BE LIABLE TO YOU OR ANY OTHER PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES. IN NO EVENT WILL BRATTBERG BE LIABLE FOR ANY DAMAGES IN EXCESS OF BRATTBERG'S LIST PRICE FOR A LICENSE TO THE SOFTWARE, EVEN IF BRATTBERG SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION. FURTHERMORE, SOME COUNTRIES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS LIMITATION AND EXCLUSION MAY NOT APPLY TO YOU. TERMINATION. This license will terminate automatically if.0. This means that it can be used to receive binary information as well as mail bodies containing characters like the Swedish . You can use this control to fetch mail from a POP server on a UNIX machine or like. There is no restriction on message sizes. Future version will contain the following extra features? IMAP will be supported. BINHEX attachments will be handled. The control will support S/MIME (Secure Mime). Installation Transfer EsPop32.ocx to your \windows\system or \winnt35\system32 directory and register it by executing the command: RegSvr32 \Windows\System\ESPOP32.OCX RegSvr32.exe can be found on the Visual Basic 4.0 CD-ROM and in our ftp archive (http://www.ljusdal.se/esource/ftp/misc). If RegSvr32.exe fails, it's probably because you don't have the MFC 4.0 DLL library installed on your system. This is available from many sources on the Internet including our ftp archive as MFC40DLL.ZIP. Regsvr32.exe is also included in this archive. If you want to check if you already got the files in mfc40dll.zip they are mfc40.dll msvcrt40.dll oc30.dll olepro32.dll regsvr32.exe Cookbook or how to use the EsPop Control Connect to a POP server The first property you should set is the POPServerIP using EsPop1.POPServerIP =192.44.2.1 Of course you have to use the IP-address if your own POP server. This property is saved with the control so you can also set it on once and for all in the property window. The next thing you should do is to set the username and password to use for your POP session. You do this by EsPop1.Username =Smith EsPop1.Password =Secret Of course you have to use your own username and password. The Username but not the password is saved with the control and can, if you want, be set once and for all in the property window. To connect to the POP server you need to have a link open to the POP server. Either through your LAN or by a RAS connection or some other dialup method. Our control EsRas is the perfect control to use if you want to establish a connection, fetch mail and then drop this connection. To establish a connection with the POP server you just have to logon using something like the following rv = EsPop1.Logon if ( rv = False ) then there was an error the property EsPop1.ErrorNo contains the error code for the error endif While you are logged on you can fetch, delete and do all other operations that are available for mail on the server. When you have done your work on the server you use the LogOff method to terminate your POP session. Disconnect from a POP server You always have to logoff before you terminate a session with a POP server. Some systems even dont want to let you connect to the server again (until the POP server is restarted) if you dont do this. So please logoff before your terminate your POP session. This is done with the LogOff method rv = EsPop1.LogOff if ( rv = False ) then there was an error the property EsPop1.ErrorNo contains the error code for the error endif Get information about available mail on the server When you are logged on to the P#$Igh|&(] !!!!(""%#%%%%%%%%%%%%%%%%%%%5%%%%%%%%%%%%%%N%%%%%%%%%( k*%#5#`#m###"$2$^$f$~$$$%/%'^'s'7(N(+)L))))))*j*q**1,K,|-%.E..0011122%%%%%%%%%%%%%%%%%%N%%%%%%%%%%%%%%K%5%%K%%%%%%%%( +2,3Z3456R6i666627T7899::_;;;G<Y<n<Z=[==&>'>I>>>???e@@% %%%%%%%%%%%%.%%%>%%N%%%%K%%%%%%%%%%%%%%%%%  48. n& ' ( ) $@AAAKBDEEWF(GGHHHIICJJJJJ KKKKLKMLMhMMMM:NxNNNNN%%%K%%%%%%5%N%N%%%5%K%%%%%%%%%K%%%%%%%%%%%%%%en  48. %NNNNNN0Q|R}RSSUUU{V|VVrXsXX[[\\___x`y``YcZcccccccccdAdBdCdDdEd%%%%%%%%%%%%%%%%%%% %%%% %%%%%% %%%%%%%%%%%%%%%%e-K@Normala .@. Heading 1 < U]ck,@, Heading 2 < UV]c"A@"Default Paragraph Font"O"Codee ]a c(O"( ident_Normalhx]a EaEd !        ^$-8D|Oy]Ea%" Ea%)Bmd345$ %#2@NEd6789:;<EaMethodsEvents OLE_LINK1^!p'1AGa^!p'AGaP_bfx}     $ & < >   4;,4?J" AHWb!]c~BGQ\ovKUbze l k!u!!!" ""#####e$p$$$%%>%K%%%%%%%%%0&>&(()))*x++],a,s,z,,,--/.2.......////#1&1111122Z2_2i3m3333333=5A5S5Z566o8{888,?0?B?I?_?k???????@@@@A/A1A6A;AAAlArAAAAAAAAAB.BC4CWCiCCD(D6DDDDD]EwEEEEEEEF FFFGGIQRQ6VEV#a'a9a@aGa Ake Hedman6D:\windev\ESPOP\Documentation\EsPop Custom control.doc Ake Hedman6D:\windev\ESPOP\Documentation\EsPop Custom control.doc Ake Hedman6D:\windev\ESPOP\Documentation\EsPop Custom control.doc Ake Hedman6D:\windev\ESPOP\Documentation\EsPop Custom control.doc Ake Hedman6D:\windev\ESPOP\Documentation\EsPop Custom control.doc Ake Hedman6D:\windev\ESPOP\Documentation\EsPop Custom control.doc Ake Hedman6D:\windev\ESPOP\Documentation\EsPop Custom control.doc Ake Hedman6D:\windev\ESPOP\Documentation\EsPop Custom control.doc Ake Hedman6D:\windev\ESPOP\Documentation\EsPop Custom control.doc Ake Hedman6D:\windev\ESPOP\Documentation\EsPop Custom control.doc@Canon LBP-4 LiteLPT1:CANONLBPCanon LBP-4 LiteCanon LBP-4 Lite@g ,,@MSUDCanon LBP-4 Lited Canon LBP-4 Lite@g ,,@MSUDCanon LBP-4 Lited SSLDaEaPQ_dQgdQhdPPDddTimes New Roman Symbol &Arial5Courier New1Courier (W1) 1Courier"qhl&pF4P ) #D "=EsRas ActiveX control Ake Hedman Ake HedmanSPOP\Documentation\EsPop Custom control.doc Ake Hedman6D:\windev\ESPOP\Documentation\EsPop Custom control.doc Ake Hedman6D:\windev\ESPOP\Documentation\EsPop Custom control.doc@Canon LBP-4 LiteLPT1:CANONLBPCanon LBP-4 LiteCanon LBP-4 Lite@g ,,@MSUDCanon LBP-4 Lited Canon LBP-4 Lite@g ,,@MSUDCanon LBP-4 Lited dTimes New Roman Symbol &Arial5Courier New1Courier (W1) 1Courier"qhl&oF4P ) #D "=EsRas ActiveX control Ake Hedman Ake HedmanRoot Entry FZO~, P~MWordDocumentHCompObjjSummaryInformation(  !"#$%&'()*+,-./UINLOPQRSTVWXYZ[\]^_`abcdefghi ܥhW eEdEazz{{{{{{{{{{{{.{d"|8|8|8|8|8|S|o|giii1nBXm=`Q{|368|8|||`т{{8|"|DocumentSummaryInformation8 Root Entry FZO~  P~MWordDocumentKCompObjjSummaryInformation(  !"#$%&'()*+,-./0123456789:;<=>?@ABCDIL@!@@RK@BP~ 4P՜.+,0HPdlt |  Brattberg) EsRas ActiveX control FMicrosoft Word Document MSWordDocWord.Document.69qOh+'0 ( P \ h tEsRas ActiveX controlcE Ake HedmanSH Normale Ake Hedman27Microsoft Word for Windows 95ттт|R{8|{8|g, P~*{>h{h{{{{|gттEsPop ActiveX control Ake Hedman Brattberg, Gruvbyn 415, S-820 50 LOOS, Sweden (ah@brattberg.se) (http://www.ljusdal.se/esource)  SAVEDATE \* MERGEFORMAT 96-07-09 13:27 rev A This control encapsulates the POP3 protocol and compile with MIME version 1.0. This means that it can be used to receive binary information as well as mail bodies containing characters like the Swedish . You can use this control to fetch mail from a POP server on a UNIX machine or like. There is no restriction on message sizes. Future version will contain the following extra features? IMAP will be supported. BINHEX attachments will be handled. The control will support S/MIME (Secure Mime). Installation Transfer EsPop32.ocx to your \windows\system or \winnt35\system32 directory and register it by executing the command: RegSvr32 \Windows\System\ESPOP32.OCX RegSvr32.exe can be found on the Visual Basic 4.0 CD-ROM and in our ftp archive (http://www.ljusdal.se/esource/ftp/misc). If RegSvr32.exe fails, it's probably because you don't have the MFC 4.0 DLL library installed on your system. This is available from many sources on the Internet including our ftp archive as MFC40DLL.ZIP. Regsvr32.exe is also included in this archive. If you want to check if you already got the files in mfc40dll.zip they are mfc40.dll msvcrt40.dll oc30.dll olepro32.dll regsvr32.exe Cookbook or how to use the EsPop Control Connect to a POP server The first property you should set is the POPServerIP using EsPop1.POPServerIP =192.44.2.1 Of course you have to use the IP-address if your own POP server. This property is saved with the control so you can also set it on once and for all in the property window. The next thing you should do is to set the username and password to use for your POP session. You do this by EsPop1.Username =Smith EsPop1.Password =Secret Of course you have to use your own username and password. The Username but not the password is saved with the control and can, if you want, be set once and for all in the property window. To connect to the POP server you need to have a link open to the POP server. Either through your LAN or by a RAS connection or some other dialup method. Our control EsRas is the perfect control to use if you want to establish a connection, fetch mail and then drop this connection. To establish a connection with the POP server you just have to logon using something like the following rv = EsPop1.Logon if ( rv = False ) then there was an error the property EsPop1.ErrorNo contains the error code for the error endif While you are logged on you can fetch, delete and do all other operations that are available for mail on the server. When you have done your work on the server you use the LogOff method to terminate your POP session. Disconnect from a POP server You always have to logoff before you terminate a session with a POP server. Some systems even dont want to let you connect to the server again (until the POP server is restarted) if you dont do this. So please logoff before your terminate your POP session. This is done with the LogOff method rv = EsPop1.LogOff if ( rv = False ) then there was an error the property EsPop1.ErrorNo contains the error code for the error endif Get information about available mail on the server When you are logged on to the P you fail to comply with the limitations described above. On termination, you must destroy all copies of the Software. MISCELLANEOUS. This Agreement represents the complete agreement concerning this license between the parties and supersedes all prior agreements and representations between them. It may be amended only by a writing executed by both parties. If any provision of this Agreement is held to be unenforceable for any reason, such provision shall be reformed only to the extent necessary to make it enforceable. This Agreement shall be governed by and construed under Swedish law as such law applies to agreements between Swedish residents entered into and to be performed within Sweden, except as governed by Federal law. The application the United Nations Convention of Contracts for the International Sale of Goods is expressly excluded. ___________________________________________________________________________ Brattberg Gruvbyn 415A S-820 50 LOOS SWEDEN Phone: +46 657 106 20 Fax: +46 657 105 13 Email: f0002@brattberg.se WWW-site: http://www.ljusdal.se/esource .Ann 96-07-30 21:4723WXdS,4?J*1o v !!!!%#+#`#d###"$($f$j$$$%%i%%^'d'((7(=(+)/))UV]UVUUVauDUVcUVcc$Z))))))++, ,,-.//]/z/v1111111111111122(242H2T2h2q22222*3,3<4j4r444444446Q6i6666 72777 88=8[8m889:F;\;;;Y<n<Z=[====='>I>>?AA,BIBBBU^c^U]cUMMVU]BD/DDDDDE.EWFiF(G6GGGI-I0JCJnJ{JJJJKrKKLM@dEd_dgdhdmdUVau]U!ABZ~2X#09FST} $ %%%%%%%%%%%%%%N%%%%%%%%%%%%%%%%S3(   4. 4.e$ > ?  }   $7N(?O%%%%%%%%%%%%%%%%%%%%%>%%%%%>%%%N%%%% 48.)   48.) k!