I am using python and below is the image from word file that i need to get to send email via SMTP.
So far i am able to get ONLY text and send it with a success but not the image.
I have tried many things including MIMEImage
and what not. I can't even paste my code here now as it will make no sense. Please help me out. Last when I tried to combine the body string with the image as_string
it gave me the error for being too long due to encoding.
P.S. I want to be able to run it a loop and sending 3 4 emails. I am successful in sending the text ONLY.
Here is an Example You can use
docx2txt
module to Extract the Text & Images drom a word document