Including a Variable In the HTML Tags When Sending An Email

Richard Damon Richard at Damon-Family.org
Sat Aug 8 11:45:45 EDT 2020


On 8/8/20 10:58 AM, sammy.jackson987 at gmail.com wrote:
> Thank you Richard for your response.
>
> I have moved all the text i want the user to see into the body of the email.
>
> I still cannot get my email to display the name.
>
> Name = "Tim"
>
> How would i include this variable in my HTML/Python code?
>
> Any ideas?
>
> Thank you.

Since you are already using .format to insert the message body, you
might as well do something similar to insert the name, adding more
placeholders for the format to insert into.

-- 
Richard Damon



More information about the Python-list mailing list