Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a script which communicates with an API to fetch some data.
The end result is a list of names.

Now I want to create a html page with python.
When I will click this html page, my outlook should open and it should create an email.

In the email I want to draw a table.


The column size is fixed and the row size depends on the length of the list.

And I want to populate that table with the values of the list.

I do not need any web framework like Django or Flask. As I will not run a website. It will be a single page html document. Every time, I run the script the new html document should be created and when will I click the html, the email content should change.

I do not know how to start this. Could you please guide me how should I proceed. ?

Thanking in anticipation.

What I have tried:

I do not know in which direction I should start.
Posted
Updated 26-Aug-22 22:32pm

1 solution

Why do you need an HTML page? That would need to be loaded into a browser to handle the next stage. It would be simpler to create the mail message in python, using its built in mailbox — Manipulate mailboxes in various formats — Python 3.10.6 documentation[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900