Author |
|
Hak Newbie
Joined: 03 October 2006
Online Status: Offline Posts: 3
|
Posted: 03 October 2006 at 4:25am | IP Logged
|
|
|
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 |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 03 October 2006 at 9:30am | IP Logged
|
|
|
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 |
|
|
Hak Newbie
Joined: 03 October 2006
Online Status: Offline Posts: 3
|
Posted: 11 October 2006 at 4:28am | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 11 October 2006 at 8:17am | IP Logged
|
|
|
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 |
|
|
Hak Newbie
Joined: 03 October 2006
Online Status: Offline Posts: 3
|
Posted: 06 December 2006 at 4:16am | IP Logged
|
|
|
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 |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 06 December 2006 at 4:29am | IP Logged
|
|
|
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 |
|
|