Including a Variable In the HTML Tags When Sending An Email

2020-08-08 Thread sammy . jackson987
Hello all I was hoping someone could help me with the following coding problem. I am trying to send an email where the body of the email is taken from a data frame, which i have managed to do. However i want to start the email by saying Hi Name, where Name is a variable that contains the perso

Re: Including a Variable In the HTML Tags When Sending An Email

2020-08-08 Thread sammy . jackson987
On Saturday, August 8, 2020 at 3:46:04 PM UTC+1, Richard Damon wrote: > All the text that you want the user to see needs to be in the of > the message. is for metadata and stuff to setup some formatting. > > You might want to study up a bit on HTML formatting too. Depending on > what the data fr

Re: Including a Variable In the HTML Tags When Sending An Email

2020-08-08 Thread sammy . jackson987
On Saturday, August 8, 2020 at 5:03:07 PM UTC+1, MRAB wrote: > On 2020-08-08 15:58, sammy.jackson...@gmail.com wrote: > > On Saturday, August 8, 2020 at 3:46:04 PM UTC+1, Richard Damon wrote: > >> All the text that you want the user to see needs to be in the of > >> the message. is for metadata a

Re: Including a Variable In the HTML Tags When Sending An Email

2020-08-09 Thread sammy . jackson987
On Sunday, August 9, 2020 at 1:32:30 AM UTC+1, Richard Damon wrote: > On 8/8/20 8:03 PM, sammy.jackson...@gmail.com wrote: > > If i use place holders i.e. {0} and {1} where {0} is the name and {1} is > > the dataframe i get an error for the following line of code:- > > .format((Name,Body).to_html(