tsNet Email HTML Button?

matthias_livecode_150811 at m-r-d.de matthias_livecode_150811 at m-r-d.de
Sun Feb 26 13:42:43 EST 2023


Rick,
did you correctly setup the email for tsNET?

There is a function mimeEncodeFieldAsMIMEMultipartDocument()
That functions creates multipart content from field text. this make sure that the html and the plain text is correct display in the email.

put mimeEncodeFieldAsMIMEMultipartDocument(the long id of field "YourMessageField") into tBody

After that you have to use mimeEncodeAsMIMEEmail to complete the "setup" of the complete raw email text.

Regards,

Matthias
> Am 26.02.2023 um 19:16 schrieb harrison--- via use-livecode <use-livecode at lists.runrev.com>:
> 
> Good afternoon,
> 
> I’m trying to use LiveCode with tsNet to send an email with an HTML button.
> Unfortunately the email message output doesn’t work right.
> 
> Any normal text is formatted properly and it can center it nicely, which is fine.
> 
> I  tried using a simple anchor tag and although the text shows
> up as a link, it doesn’t show on mouse hover that it will go anywhere, and when
> you click on it, it indeed doesn’t go anywhere.
> 
> I can open the code in Safari, and if I tell Safari to email it as a webpage
> everything works fine, so the HTML code itself is not the issue.
> 
> I looked at the LiveCode lesson on it, and I even played around with
> the headers code, but it still doesn’t work.
> 
> It this a bug in tsNet?
> 
> Any suggestions?
> 
> Thanks,
> 
> Rick
> 
> 
> 
> 
> _______________________________________________
> 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