tsNetSmtpSync (with attachment

Charles Warwick charles at techstrategies.com.au
Thu Mar 22 00:25:41 EDT 2018


Hi,

> On 22 Mar 2018, at 1:57 am, G.W.Gaich via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> ....
> schannel: decrypted data buffer: offset 0 length 16384
> 501 Syntax error - line too long
> 

This gives us a clue.  It looks like your mail server is not detecting the line endings in the body of the e-mail.

Can you try add the following line just before the call to tsNetSmtpSync (line 38) in the mouseUp handler of the “Send Email” button:

replace LF with CRLF in tPostData

And see if that makes any difference?

Regards,

Charles

> 
> 
>> 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
> 
> 
> 
> _______________________________________________
> 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