Login  
Search All Forums
Dart Home | PowerTCP Mail for .NET | Custom Development Reply | PowerTCP Mail for .NET Topics | Forums   
AuthorForum: PowerTCP Mail for .NET
Topic: 530 Must issue a STARTTLS command first
Ruban

From: India
Posts: 1
Member Since: 09/14/15
posted September 14, 2015 8:51 AM

Dim Smtp1 As Smtp = New Smtp
      Dim SMTPResult As SmtpResult
      
      Dim Message As Dart.Mail.MailMessage = New Dart.Mail.MailMessage()




Smtp1.Session.RemoteEndPoint.Port = intPortNo

        strErrLoc = "SMTP1.DnsServerTimeout"
        Smtp1.DnsServerTimeout = 15 'default time out 30 seconds

        strErrLoc = "Set User Name"
        Smtp1.Session.Username = strUserID
        Smtp1.Session.Password = strPWD

        strErrLoc = "Subject and Mail TEXT"
        Message.Subject = strSubject
        If strHTMLEmail.Trim = "" Then
          Message.Text = strMailText
        Else
          Message.Html = strHTMLEmail
        End If

        Smtp1.Session.Authentication = Authentication.Auto

        Smtp1.Session.RemoteEndPoint.HostNameOrAddress = strServerName.Trim
        Smtp1.Session.ServicePrincipleName = "SMTP/" & strServerName.Trim


 SMTPResult = Smtp1.Send(Message)


The following code produces exception with the below error.

ERROR:
Protocol Exception--
Request: AUTH LOGIN
Response: 530 Must issue a STARTTLS command first
Nick B (Admin)

From: Utica, NY USA
Posts: 619
Member Since: 05/25/10

Extra Support Options
Custom Application Development

posted September 14, 2015 2:11 PM

Hello,

This error is coming from your server, and suggests that you need to be using Explicit security. Set Smtp.Session.Security.Encrypt to Encrypt.Explicit to configure this.

Depending upon your server's configuration, you may also need to modify Smtp.Session.Security.Protocols and specify Smtp.Session.Security.SelectionCallback and ValidationCallback handlers. See our included samples or http://www.dart.com/help/ptmlnet/webframe.html#Security%20Implementation.html for a demonstration of its implementation or more information.

If additional assistance is required, please contact support@dart.com

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

Reply | PowerTCP Mail for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX