0
I’m having difficulty creating an email on pandas that will send a text and an HTML.
Dear,
Sending test;
• Over the phones: XXXXXX - XXXXXXXXX
• TEST
Rejected (s):
HERE COMES AN HTML TABLE THAT EXITS CORRECTLY IN THE CODE
I tried the way below, but unsuccessfully in formatting.
## Função para envio do e-mail
outlook = win32.Dispatch('outlook.application')
mail = outlook.CreateItem(0)
mail.To = emailpara
mail.Subject = 'Message subject'
mail.Body = 'MESAGEMMMMMMMMMMMMM'
corpo = ("Prezados," + "\n Teste de envio;" + "\n \n \n Através dos telefones: XXXXXX - XXXXXXXXX" + "\n TESTE " + "\n Rejeitado (s): ")
mail.HTMLBody = (corpo) + delcolunas.to_html(index = False).format(corpo)
mail.Display()
else:
What did you mean by pandas?
– Paulo Marques