I’m trying to render a preview of an HTML Email built with the HTML Email Builder by @BenLee
I’ve managed to do just that, but the workflow is dumb…
Currently :
I download the HTML code that resides in my table thanks to the Temp File Pack by @Eric_Koleda as “email-myclientname.html”
A python script running on my computer watches the download folder, cuts the downloaded html file (using regex to match the file name), then pastes it on my pCloud public folder, which has a fixed url I know and can reconstruct with the file name.
I embed() the url of the html file on my doc and voilà ! I have the preview of the html email
Once the embed with the correct target URL is set up, it takes one click to have the updated email preview, but this is not clean nor scalable, and cannot be completed without a python script running and access to my pCloud account… so it’s somewhat garbage !
I tried to look into building a pack to connect to the pCloud API, but I got out of my depth, it didn’t yield any result and I moved on.
If you have any ideas on what’s the right way of doing this exactly, I’d be glad to read them
Thanks in advance !
Oh, that is interesting. I shall geek out on this a bit longer then !
Thx for the pointer @Rickard_Abraham Rickard.
EDIT :
Ok so that’s a neat trick ! Although the images are not loading properly without right-clicking and opening in a new window . But hey it’s still something !
Alright, after some testing, both of those approach are a bit jenky for my use. I’ll just settle with having a button to copy the html data to the clipboard and open JSbin in a new window then paste it there.