As the body of the letter write the contents of the sheet through the gap?

Send a letter, I want to insert into the body of the letter sheet
How can I add body sheet sendcoins ['2','G'] and the sheet volumecoins_todaytoaverage = ['7','T']
Now:" AttributeError: 'list' object has no attribute 'encode'"

import smtplib
from email.mime.text import MIMEText
from email.header import Header

# Settings
mail_sender = 'xxx'
mail_receiver = 'xxx'
username = 'xxx'
password = 'xxx'
server = smtplib.SMTP('smtp.mail.EN:587')

sendcoins = ['2','G']
volumecoins_todaytoaverage = ['7','T']
# Form the body of the email
subject = u ' Test email from '# + mail_sender
body = sendcoins
msg = MIMEText(body, 'plain', 'utf-8')
msg['Subject'] = Header(subject, 'utf-8')

# Otpravlyaem letter
server.starttls()
server.ehlo()
server.login(username, password)
server.sendmail(mail_sender, mail_receiver, msg.as_string())
server.quit()
March 12th 20 at 08:07
1 answer
March 12th 20 at 08:09
Solution
body = 'sendcoins: {}, volumecoins_todaytoaverage: {}'.format(' '.join(sendcoins), ' '.join(volumecoins_todaytoaverage))
Thank you very much. - Carey.Pacocha49 commented on March 12th 20 at 08:12

Find more questions by tags Python