___
Smtp.OCX , Version : 1.0.6.




Smtp.ocx is an activex control for sending mail via Smtp server. The control is able to handle multiple file attachments and uses Base64 encoding algorithm to encode the attachment besides that it also has CC address property . Actually smtp.ocx is Mswinsck.ocx (available from Visual Basic package) that encapsulated with smtp protocol and base64 encoding algorithm, so if you use it in your application don't forget to copy Mswinsck.ocx from your development machine to the target machine
Programming reference :

Properties :
AttachmentFile is string variable. This property holds the file attachment for the control, the syntax is : file1;file2. The separator between file1 and file2 is semicolon character. The application should check that the file is exist before pass it to the control. The maximum file attachment is 100.

CCAddress is string vaiable. This property holds the CC address of your mail. The syntax is : myfriend1@hisdomain;myfriend2@herdomain , please remind that the separator of address is ; or semicolon character

SendMail : boolean variable. Set to TRUE if you want to send mail
MailServerDomain : string variable, this is the domain of mail
MailTo : String variable, this is mail address of recipient
MailFrom : string variable, this is mail address of sender
Subject : string variable, this is subject of mail
Message : string variable, this is message of the mail

Events :
BusyState(Busy As Boolean)
This event indicate the control status .If the BusyState is TRUE it means the control is busy to communicate with SMTP server , if the state is FALSE it means the control is ready to send next message.

DisconnectedFromSMTPServer(Disconnected As Boolean)
This event will be appeared if the connection to SMTP Server has been disconnected by the control.

Error(ErrorDescription As String)
This event will be appeared if an error occured during communication between the control and SMTP Server .

MailHasBeenSent(Sent As Boolean)
This event will be appeared if the mail is already in server's queue.

ConnectionStatus(StatusLog As String)
This event is communication log between the control and SMTP server.

Usage :
Set MailServerDomain, MailTo, MailFrom, Subject and Message properties in your application. If you want to use the CCAddress property the separator between the address is ; or semicolon character. If you have attachment in your mail fill it to AttachmentFile property . If you'll send multiple attachments please remind that the separator between file is ; or semicolon character. The control uses Base64 encoding process to encode the attachment file. Then set SendMail property to TRUE, and the control will start to connect and send mail to SMTP server. If socket error or Mail server error occured during data transmission between the control and SMTP server ,Error event will be appeared. If the control sent mail to Smtp server without problem , MailHasBeenSent event will appeared that means your mail already in message's queue of Smtp server. All of communication activities between Smtp.ocx and Smtp Server will be recorded in ConnectionStatus event.
Smtp.ocx has been compiled with Visual Basic Enterprise 6.0 Service Pack 3.
The status of this control is FREEWARE.
If you found bugs or comments please contact me at :
Ari, ari@microtechlabs.com
MicroTech Labs, http://www.microtechlabs.com



<body> <p>This page uses frames, but your browser doesn't support them. </p> </body>