Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: SMTP / SSL Problem Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 11 March 2005 at 6:02am | IP Logged Quote Guests

Hi
I am using the trial version to test a connection to NHS Mail but cant seem to connect. they expect an SSL connection over port 25 with authentication. My code is shown below (FoxPro) and the log file I get back - any ideas??


oSMTP=CREATEOBJECT("MailBee.SMTP")
oSSL = CreateObject("MailBee.SSL")

oSMTP.EnableLogging = .t.
oSMTP.LogFilePath = "C:\temp\smtp_log.txt"
oSMTP.ClearLog

oSmtp.LicenseKey = "My trial key"
oSSL.LicenseKey = "My trial key"

oSmtp.ServerName = "SMTP1.NHS.NET"
oSmtp.FromAddr = "mynhsmail@nhs.net"
oSmtp.portnumber = 25
oSmtp.UserName = "my username"
oSmtp.Password = "my password"

oSmtp.ssl = oSSL
oSmtp.ssl.UseStartTLS = .t.

If oSMTP.Connect
MESSAGEBOX("connect Error: "+ osmtp.ErrDesc)
oSmtp.disconnect
MODIFY COMMAND c:\temp\smtp_log.txt
ELSE
     oSmtp.ToAddr = "07719396849@sms.nhs.net"
     oSmtp.Subject = "test"
     oSmtp.BodyText = "test body"

     If oSMTP.Send
           oSMTP.Disconnect
     else
      MESSAGEBOX(osmtp.ErrDesc)
      MODIFY COMMAND c:\temp\smtp_log.txt
     ENDIF
endif


Log File:-

11:03:44 [MailBee SMTP v. 5.2. Trial version. 29 day(s) left]
11:03:44 [Connecting to server SMTP1.NHS.NET at port 25 using default domain]
11:03:44 [Domain specified in FromAddr, nhs.net used]
11:03:44 [Using regular SMTP authentication]
11:03:44 [Sending helo]
11:03:44 [Switching to SSL over regular port mode]
11:03:44 [Error: Negative or void server response]
11:03:44 [Server responded: 503 STARTTLS command used when not advertised\r\n]
11:03:44 [Possible error reason: STARTTLS not supported]
11:03:44 [Error: Connection failure]
11:03:44 [Connecting to server SMTP1.NHS.NET at port 25 from domain nhs.net]
11:03:44 [Using regular SMTP authentication]
11:03:44 [Sending helo]
11:03:44 [Switching to SSL over regular port mode]
11:03:44 [Error: Negative or void server response]
11:03:44 [Server responded: 503 STARTTLS command used when not advertised\r\n]
11:03:44 [Possible error reason: STARTTLS not supported]
11:03:44 [Error: Connection failure]

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

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 11 March 2005 at 7:21am | IP Logged Quote Alex

You should set authentication method to use (by default, authentication is not used).

...
oSmtp.AuthMethod = 2 ' New Line
oSmtp.UserName = "my username"
oSmtp.Password = "my password"
...

There are also another authentication methods available although method #2 (LOGIN auth) is supported by most SMTP servers.

Regards,
Alex

Back to Top View Alex's Profile Search for other posts by Alex
 
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 11 March 2005 at 7:33am | IP Logged Quote Guests

Tried this but it does not like that either (or any other of the AuthMethods
Back to Top View Guests's Profile Search for other posts by Guests
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 11 March 2005 at 8:31am | IP Logged Quote Alex

Got it. Your server requires one extra EHLO command call after SSL connection has been established.

We've added support for this. Please try update version at: http://www.afterlogic.com/updates/mailbee.zip

Currently we're in the process of migration to new web site (http://www.afterlogic.com) and new brand (Afterlogic). All new versions of our products are available on the new web site only. mailbee.iforum.com will be made simple redirect to www.afterlogic.com soon.
Back to Top View Alex's Profile Search for other posts by Alex
 
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 11 March 2005 at 8:50am | IP Logged Quote Guests

Cool - it all works now. Thanks for that,

Alec.
Back to Top View Guests's Profile Search for other posts by Guests
 

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