Getting Started in VB |
In order to insert wodSmtpServer COM object in your project, follow these steps: 1. Install the component on your system by starting its setup program. 2. In the Visual Basic IDE, create new project or open existing one. 3. Click on 'Project', then on 'References' menu 4. Find and select 'WeOnlyDo! COM SMTP Server COM Object', and click on 'Ok' to leave the dialog box. 5. Open code editor, and at the top, in (General) section add this code:
6. In Form_Load function initialize the component
7. If you have licensed version of wodSmtpServer, then after you initialize the component, set it's LicenseKey property:
8. To use notifications (optional) instead of events, please refer here. 9. To free up the resources when your program ends, destroy the component from Form_Unload
10. Do not forget to distribute wodSmtpSrv.DLL when using COM object!
In order to insert wodSmtpServer ActiveX control in your project, follow these steps: 1. Install the component on your system by starting its setup program. 2. In the Visual Basic IDE, create new project or open existing one. 3. Click on 'Project', then on 'Components' menu 4. Find and select 'WeOnlyDo! COM SMTP Server ActiveX Control', and click on 'Ok' to leave the dialog box. 5. Locate new wodSmtpServer icon on Toolbox toolbar 6. Do not forget to distribute wodSmtpSrv.OCX when using ActiveX control! |