Results 1 to 3 of 3
  1. #1
    FlashFlyyy's Avatar
    Join Date
    Jun 2017
    Gender
    male
    Posts
    141
    Reputation
    10
    Thanks
    19
    My Mood
    Amazed

    Using SSL encryption for sending emails

    When I set 'enableSsl' to 'true' I get the following errors,

    Code:
    [12:33:56] System.IO.IOException: The handshake failed due to an unexpected packet format.
       at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
       at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, Boolean checkCertificateRevocation)
       at MailKit.Net.Smtp.SmtpClien*****nnect(Uri uri, CancellationToken cancellationToken)
       at MailKit.MailService.Connect(String hostName, Int32 port, Boolean useSsl, CancellationToken cancellationToken)
    When I set 'enableSsl' to 'false' I get no errors and emails are sent successfully.
    Am I using a port that does not have 'ssl' enabled? If so then how do I fix this?

    Is it a big flaw if I don't use ssl to encrypt emails?
    Last edited by Luverdark; 07-14-2018 at 12:27 AM.

  2. #2
    SeXZeFPS's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Location
    In your wardrobe
    Posts
    598
    Reputation
    10
    Thanks
    637
    My Mood
    Asleep
    Quote Originally Posted by FlashFlyyy View Post
    When I set 'enableSsl' to 'true' I get the following errors,

    Code:
    [12:33:56] System.IO.IOException: The handshake failed due to an unexpected packet format.
       at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
       at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, Boolean checkCertificateRevocation)
       at MailKit.Net.Smtp.SmtpClien*****nnect(Uri uri, CancellationToken cancellationToken)
       at MailKit.MailService.Connect(String hostName, Int32 port, Boolean useSsl, CancellationToken cancellationToken)
    When I set 'enableSsl' to 'false' I get no errors and emails are sent successfully.
    Am I using a port that does not have 'ssl' enabled? If so then how do I fix this?

    Is it a big flaw if I don't use ssl to encrypt emails?
    What port is it running on?
    Last edited by Luverdark; 07-14-2018 at 12:27 AM.

  3. #3
    FlashFlyyy's Avatar
    Join Date
    Jun 2017
    Gender
    male
    Posts
    141
    Reputation
    10
    Thanks
    19
    My Mood
    Amazed
    I think 587 (unless this is the gmail server port and not the one I am sending from)

    How would I check?

Similar Threads

  1. Banned for sending "used" amazon card (mistake)
    By DopeTEMP in forum Staff Disputes
    Replies: 4
    Last Post: 01-28-2017, 11:51 AM
  2. [REQUEST] Looking for bulk email sending options
    By gYH$%U$%UJH$J in forum General
    Replies: 3
    Last Post: 12-09-2016, 11:54 PM
  3. Replies: 2
    Last Post: 05-05-2016, 12:50 PM
  4. [Help] Sending Email Using C++
    By Darkzz12 in forum C++/C Programming
    Replies: 6
    Last Post: 08-25-2012, 08:56 AM
  5. used L85A1 code for generator
    By boysie12 in forum WarRock - International Hacks
    Replies: 20
    Last Post: 12-08-2007, 12:09 PM