Search The ForumSearch   RegisterRegister  LoginLogin

MailBee S/MIME

 AfterLogic Forum : MailBee S/MIME
Subject Topic: Problem in using SSL component in Delphi Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Hak
Newbie
Newbie


Joined: 03 October 2006
Online Status: Offline
Posts: 3
Posted: 03 October 2006 at 4:25am | IP Logged Quote Hak

Hi guys, do you have any sample code of using SSL component with SMTP component in delphi? I have tried to use them in my project, but i gotten the error below

Incompatible types: 'ISSL' and 'TSSL'

Thanks.
Back to Top View Hak's Profile Search for other posts by Hak
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 03 October 2006 at 9:30am | IP Logged Quote Andrew

We have Delphi version of POP3 with SSL demo. You can download it at:
http://www.afterlogic.com/files/POP3_Demo_with_SSL.zip

Please let us know how this sample works for you. If this sample causes the same error, could you please provide us with version number of Delphi you are using and the part of your code where the error appears? You can send this information to support@afterlogic.com.


Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
Hak
Newbie
Newbie


Joined: 03 October 2006
Online Status: Offline
Posts: 3
Posted: 11 October 2006 at 4:28am | IP Logged Quote Hak

Hi Andrew,

Thanks for your prompt reply. I have tried your POP3 Demo in my Delphi version 5 but i got the error message below at the line objPOP3.SSL.UseStartTLS := True;

Access Violation at address 004D0C3 in module 'POP3Demo.exe'

Do you know why the SSL of objPOP3 is null value even though we have assigned the SSL to the POP3 as the line objPOP3.SSL := objSSL.DefaultInterface;?

Thanks

Hak.
Back to Top View Hak's Profile Search for other posts by Hak
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 11 October 2006 at 8:17am | IP Logged Quote Alex

Seems the license key you're using does not include SSL license. MailBee SSL\SMIME Plugin is a separate product (in license terms) and requires its own license key. When using trial key, this is not the issue since the trial key includes all licenses on all MailBee ActiveX products. However, if you're using it with permanent license key, you should set SSL license key separately:
Code:

objSSL.LicenseKey := 'SSL key';


You can purchase SSL/SMIME key at:
MailBee SSL/SMIME Plugin purchase options

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Hak
Newbie
Newbie


Joined: 03 October 2006
Online Status: Offline
Posts: 3
Posted: 06 December 2006 at 4:16am | IP Logged Quote Hak

Hi Andrew & Alex,

Do you know what are the possible reasons the mail server will give me the error below at the line "autSmtp.Send"?

6 - Connection suddenly closed by the server (many servers close connection if the client has no activity for a while. Periodical calling Ping method avoids this)

I am using SMTP and SSL component connect to server using port 465.

Appreciate your prompt reply.

Thank you.

Hak
Back to Top View Hak's Profile Search for other posts by Hak
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 06 December 2006 at 4:29am | IP Logged Quote Andrew

Could you please enable logging SMTP session into a file, reproduce the problem, and provide us with the log for examination?

You can enable logging as follows (VB6 syntax):

Code:
Set Mailer = CreateObject("MailBee.SMTP")
Mailer.EnableLogging = True
Mailer.LogFilePath = "C:\my_log.txt"
Mailer.ClearLog


Please make sure the application has permission to write into the specified location.

You can send the log file to support@afterlogic.com.


Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide