eMail attachment: best practice?

matthias_livecode_150811 at m-r-d.de matthias_livecode_150811 at m-r-d.de
Tue Jun 25 18:15:35 EDT 2024


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



More information about the use-livecode mailing list