tsNetSmtpSync sending Email with attachment does not work

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trevix
Posts: 1017
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

tsNetSmtpSync sending Email with attachment does not work

Post by trevix » Mon Sep 16, 2024 10:38 am

As from BUG 24581 (https://quality.livecode.com/show_bug.cgi?id=24581) I am having a problem on sending Emails with attachment in Sonoma and LC 10 RC1 (also on Catalina and LC10 RC8), while it works on Catalina with LC 10 DP5.
Unfortunately this problem happens to me, but not on the test that Sam Norris did with my test stack, answering to my bug report.

This problem, which affects both OSX and mobile, is preventing me from publishing an update to my App.

Anyone want to try this stack and report whether, by sending an email with an attachment, the email is received correctly?
NOTE: the Email with attachment is reported as SENT, but, in my case, is not received.
I have tried different emails and different Email servers (OVH and Aruba).
Thanks.

Recipe:
- Download the stack to your computer and open it with LC10 DP8 or RC1
- fix the credentials inside the button script
- write the Email address FROM
- write the email address TO
- press the "Send Email" button
- press "Cancel" the first time, to check if the Email is received in your Email program
- Repeat and press "OK" in order to send an Email with attachment
- Check if the Email with attachment is received in your Email program
Attachments
Email Test send.zip
The Test stack
(46.31 KiB) Downloaded 142 times
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

trevix
Posts: 1017
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: tsNetSmtpSync sending Email with attachment does not work

Post by trevix » Mon Sep 16, 2024 3:27 pm

As from quality update, it seems that the problem is the MIME library.
Using the MIME library of LC10DP5 on LC10RC1, the email with attachment arrives fine.
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1225
Joined: Thu Apr 11, 2013 11:27 am

Re: tsNetSmtpSync sending Email with attachment does not work

Post by LCMark » Mon Sep 23, 2024 11:03 am

@trevis: We found the cause of this problem - the update of the MIME library to support custom headers resulted in the 'standard' mime headers not being emitted in the same order... While the RFCs don't suggest that header order is important, it obviously is to some SMTP servers! We've adjusted this now so that the standard (date/to/cc/from/subject/mime-version) headers are all emitted in the same order as before and *then* the custom headers are emitted which seems to resolve the issue.

trevix
Posts: 1017
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: tsNetSmtpSync sending Email with attachment does not work

Post by trevix » Mon Sep 23, 2024 11:06 am

Thanks!!! This was fast.
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

Post Reply

Return to “Internet”