Hello guys, I have been working on an app on the SIR model. And an email is send to my mail every time someone uses my app. There are two ways to display emails, by text and html. I am using html as i can change text properties like size. So, every time the submit button in my is clicked, 1 would be added to a value in the datatabel (representing the number of people who used the app). When the email is send, i want to include that ‘value’ in the datatable in the html.
here is the code-
anvil.email.send(
to="email@gmail.com",
from_address="aadhi_anvil",
from_name="The SIR Model",
subject="Keep it up! another person used your App!",
html="<h4>Greetings,</h4><h3>This Email is send from your ANVIL app to notify you that another person the used you app on the SIR Model, taking the total views to {N}...Keep it Up!</H3>"
)
N is the value (views). So, can anyone please tell me how to add N in the place of {N}. In python we do-print(f"blah…blah…{N}")My question is, how to do that in html?..Thank You!!