eMail attachment: best practice?

Matthias Rebbe matthias_livecode_150811 at m-r-d.de
Wed Jun 26 03:34:48 EDT 2024


The url is right.
The prefixes smtp:// smtps://, http:// https:// ftp:// ftps:// sftp:// and so tell the underlying tool which establish the connection to use that protocol.
A trailing :587 means the connection should be established with port 587

If you are running for example a webserver on an other port than 80, e.g. 8080, you can would open use the following url in the web browser http://serverip:8080



Von meinem iPad gesendet

> Am 26.06.2024 um 00:55 schrieb Bob Sneidar via use-livecode <use-livecode at lists.runrev.com>:
> 
> The demo stack URL in the script does not look right. I have never used a URL in the form of SMTP://<serverfqdn>:587/ before. That can’t be right!
> 
> Bob S
> 
> 
>> On Jun 25, 2024, at 3:15 PM, matthias rebbe via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> Instead of using revMail which opens the default mail client app you could use tsNET external, which is availlable  for Win/Mac/Linux/iOS and Android.
>> 
>> The only thing you have to keep in mind is that tsNet directly sends the email instead of opening the default email client.
>> 
>> Here you can find an sample stack
>> https://downloads.techstrategies.com.au/tsnet/smtpexample.livecode
>> 
>> And here is a link to a Livecode Lesson
>> https://lessons.livecode.com/m/4071/l/685661-how-to-send-e-mail-using-the-tsnet-external
>> 
>> 
>> 
>>>> Am 25.06.2024 um 22:35 schrieb Paul Dupuis via use-livecode <use-livecode at lists.runrev.com>:
>>> 
>>> Under a specific condition, my app creates an email with some pre-populated information using revMail:
>>> 
>>> revMail address, [ccAddress, [mailSubject, [messageBody]]]
>>> 
>>> So, my call is: revMail tSupportEmail, , "Diagnostic Report Information", tEmailBody
>>> Where tSupportEmail contains a valid email address and tEmailBody contain the information I want to send.
>>> 
>>> I realize the user still has to click their send button in their email client, but I have 2 questions:
>>> 
>>> 1) I see the Dictionary still lists "revMailUnicode" with the same parameters. If tEmailBody contains Unicode characters do I need to textEncode(tEmailBody, "UTF-16") and use revMailUnicode OR is plain old revMail now Unicode aware
>>> 
>>> 2) My more important question is how does one create an email with an attached file? I see no feature of revMail to include an attachment. Is there some other way? If there is no way to add an attachment, what might the best practice for sending the contents and structure of a Livecode array be?
>>> 
>>> 
>>> _______________________________________________
>>> 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