tsNetSmtpSync (with attachment

G.W.Gaich gWolfgang at gaich.de
Wed Mar 21 11:57:59 EDT 2018


Hi Charles,
here the output of debug_liburl.livecode:

1521647487
1521647488
Rebuilt URL to: smtp://smtp.1und1.de:587/
Connection 1 seems to be dead!
Closing connection 1
schannel: shutting down SSL/TLS connection with smtp.1und1.de port 587
schannel: clear security context handle
   Trying 212.227.15.183...
TCP_NODELAY set
Connected to smtp.1und1.de (212.227.15.183) port 587 (#2)
1521647498
220 kundenserver.de (mreue105) Nemesis ESMTP Service ready
EHLO gyLittleAcer
250-kundenserver.de Hello gyLittleAcer [130.180.10.154]
250-AUTH LOGIN PLAIN
250-SIZE 69920427
250 STARTTLS
STARTTLS
220 OK
schannel: SSL/TLS connection with smtp.1und1.de port 587 (step 1/3)
schannel: re-using existing credential handle
schannel: incremented credential handle refcount = 2
schannel: sending initial handshake data: sending 210 bytes...
schannel: sent initial handshake data: sent 210 bytes
schannel: SSL/TLS connection with smtp.1und1.de port 587 (step 2/3)
schannel: failed to receive handshake, need more data
schannel: SSL/TLS connection with smtp.1und1.de port 587 (step 2/3)
schannel: encrypted data got 1460
schannel: encrypted data buffer: offset 1460 length 4096
schannel: encrypted data length: 1368
schannel: encrypted data buffer: offset 1368 length 4096
schannel: received incomplete message, need more data
schannel: SSL/TLS connection with smtp.1und1.de port 587 (step 2/3)
schannel: encrypted data got 1460
schannel: encrypted data buffer: offset 2828 length 4096
schannel: received incomplete message, need more data
schannel: SSL/TLS connection with smtp.1und1.de port 587 (step 2/3)
schannel: encrypted data got 1268
schannel: encrypted data buffer: offset 4096 length 4096
schannel: received incomplete message, need more data
schannel: SSL/TLS connection with smtp.1und1.de port 587 (step 2/3)
schannel: encrypted data got 747
schannel: encrypted data buffer: offset 4843 length 5120
schannel: sending next handshake data: sending 126 bytes...
schannel: SSL/TLS connection with smtp.1und1.de port 587 (step 2/3)
schannel: encrypted data got 51
schannel: encrypted data buffer: offset 51 length 5120
schannel: SSL/TLS handshake complete
schannel: SSL/TLS connection with smtp.1und1.de port 587 (step 3/3)
EHLO gyLittleAcer
schannel: client wants to read 16384 bytes
schannel: encdata_buffer resized 17408
schannel: encrypted data buffer: offset 0 length 17408
schannel: encrypted data got 127
schannel: encrypted data buffer: offset 127 length 17408
schannel: decrypted data length: 98
schannel: decrypted data added: 98
schannel: decrypted data cached: offset 98 length 16384
schannel: encrypted data buffer: offset 0 length 17408
schannel: decrypted data buffer: offset 98 length 16384
schannel: schannel_recv cleanup
schannel: decrypted data returned 98
schannel: decrypted data buffer: offset 0 length 16384
250-kundenserver.de Hello gyLittleAcer [130.180.10.154]
250-AUTH LOGIN PLAIN
250 SIZE 69920427
AUTH LOGIN
schannel: client wants to read 16384 bytes
schannel: encrypted data buffer: offset 0 length 17408
schannel: encrypted data got 47
schannel: encrypted data buffer: offset 47 length 17408
schannel: decrypted data length: 18
schannel: decrypted data added: 18
schannel: decrypted data cached: offset 18 length 16384
schannel: encrypted data buffer: offset 0 length 17408
schannel: decrypted data buffer: offset 18 length 16384
schannel: schannel_recv cleanup
schannel: decrypted data returned 18
schannel: decrypted data buffer: offset 0 length 16384
334 VXNlcm5hbWU6
c2VydmljZUBnYWljaC5kZQ==
schannel: client wants to read 16384 bytes
schannel: encrypted data buffer: offset 0 length 17408
schannel: encrypted data got 47
schannel: encrypted data buffer: offset 47 length 17408
schannel: decrypted data length: 18
schannel: decrypted data added: 18
schannel: decrypted data cached: offset 18 length 16384
schannel: encrypted data buffer: offset 0 length 17408
schannel: decrypted data buffer: offset 18 length 16384
schannel: schannel_recv cleanup
schannel: decrypted data returned 18
schannel: decrypted data buffer: offset 0 length 16384
334 UGFzc3dvcmQ6
RUltMkIuLiwtbzA=
schannel: client wants to read 16384 bytes
schannel: encrypted data buffer: offset 0 length 17408
schannel: encrypted data got 59
schannel: encrypted data buffer: offset 59 length 17408
schannel: decrypted data length: 30
schannel: decrypted data added: 30
schannel: decrypted data cached: offset 30 length 16384
schannel: encrypted data buffer: offset 0 length 17408
schannel: decrypted data buffer: offset 30 length 16384
schannel: schannel_recv cleanup
schannel: decrypted data returned 30
schannel: decrypted data buffer: offset 0 length 16384
235 Authentication succeeded
MAIL FROM:<service at gaich.de> SIZE=49321
schannel: client wants to read 16384 bytes
schannel: encrypted data buffer: offset 0 length 17408
schannel: encrypted data got 72
schannel: encrypted data buffer: offset 72 length 17408
schannel: decrypted data length: 43
schannel: decrypted data added: 43
schannel: decrypted data cached: offset 43 length 16384
schannel: encrypted data buffer: offset 0 length 17408
schannel: decrypted data buffer: offset 43 length 16384
schannel: schannel_recv cleanup
schannel: decrypted data returned 43
schannel: decrypted data buffer: offset 0 length 16384
250 Requested mail action okay, completed
RCPT TO:<guenter at gaich.de>
schannel: client wants to read 16384 bytes
schannel: encrypted data buffer: offset 0 length 17408
schannel: encrypted data got 37
schannel: encrypted data buffer: offset 37 length 17408
schannel: decrypted data length: 8
schannel: decrypted data added: 8
schannel: decrypted data cached: offset 8 length 16384
schannel: encrypted data buffer: offset 0 length 17408
schannel: decrypted data buffer: offset 8 length 16384
schannel: schannel_recv cleanup
schannel: decrypted data returned 8
schannel: decrypted data buffer: offset 0 length 16384
250 OK
DATA
schannel: client wants to read 16384 bytes
schannel: encrypted data buffer: offset 0 length 17408
schannel: encrypted data got 75
schannel: encrypted data buffer: offset 75 length 17408
schannel: decrypted data length: 46
schannel: decrypted data added: 46
schannel: decrypted data cached: offset 46 length 16384
schannel: encrypted data buffer: offset 0 length 17408
schannel: decrypted data buffer: offset 46 length 16384
schannel: schannel_recv cleanup
schannel: decrypted data returned 46
schannel: decrypted data buffer: offset 0 length 16384
354 Start mail input; end with <CRLF>.<CRLF>
We are completely uploaded and fine
schannel: client wants to read 16384 bytes
schannel: encrypted data buffer: offset 0 length 17408
schannel: encrypted data got 63
schannel: encrypted data buffer: offset 63 length 17408
schannel: decrypted data length: 34
schannel: decrypted data added: 34
schannel: decrypted data cached: offset 34 length 16384
schannel: encrypted data buffer: offset 0 length 17408
schannel: decrypted data buffer: offset 34 length 16384
schannel: schannel_recv cleanup
schannel: decrypted data returned 34
schannel: decrypted data buffer: offset 0 length 16384
501 Syntax error - line too long
Connection #2 to host smtp.1und1.de left intact
1521647499
1521647500
1521647501
1521647502
1521647503
1521647504





Am 21.03.2018 um 09:34 schrieb Charles Warwick via use-livecode:
> Can you please download the following stack:
>
> https://downloads.techstrategies.com.au/tsnet/debug_liburl.livecode
>
> Open it while you have your LCMail stack open, click the “start debug” button in the above stack, try send an e-mail with an attachment and then click “stop debug” to stop the timer in the debug field.
>
> That should generate some debug information about your SMTP connection.  If you can post the results of that (minus any private details) it might help us to work out what is going on.
>
> Regards,
>
> Charles
>
>> On 21 Mar 2018, at 5:24 am, G.W.Gaich via use-livecode <use-livecode at lists.runrev.com> wrote:
>>
>> Hello Charles,
>>
>> thank you for your reply.
>>
>> I have the same result if I disable the anti-virus software.
>>
>> I testet it on another machine (windows 10). I get that error:
>>
>>
>> tsneterr: (56) Failure when receiving data from the peer
>>
>> My Mailserver:
>> smtp.1und1.de
>> Port is 587
>> Authentification Method is password, normal
>> Encryption is STARTTLS
>>
>>
>> With Thunderbird I can send emails with attachments
>>
>> Best
>> Günter
>>
>>> Am 19.03.2018 um 04:07 schrieb Charles Warwick via use-livecode:
>>> Hi,
>>>
>>> That does seem odd...  Is there any chance you might have some anti-virus software running that might be getting in the way?
>>>
>>> Regards,
>>>
>>> Charles
>>>
>>>> On 14 Mar 2018, at 1:18 am, G. Wolfgang Gaich via use-livecode <use-livecode at lists.runrev.com> wrote:
>>>>
>>>> Hallo all,
>>>>
>>>> try to send an email with attachment (PDF) from LiveCode with tsNet (tsNetSmtpSync)
>>>>
>>>> I tried the sample stack "Mail v1.2" from
>>>> https://downloads.techstrategies.com.au/tsnet/LCMail.livecode
>>>>
>>>> I get an error when I try to send with an attachment (PDF document):
>>>>
>>>> Error tsneterr: (28) schannel: timed out sending data (bytes sent: 0)
>>>> returned from server
>>>>
>>>>
>>>> Without the attachment the email is send.
>>>>
>>>> Windows 7, LC 8.1.9
>>>>
>>>>
>>>> Any ideas?
>>>>
>>>> Best
>>>> Günter
>>>>
>>>>
>>>> _______________________________________________
>>>> use-livecode mailing list
>>>> use-livecode at lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode






More information about the use-livecode mailing list