title: How to add image to Email body_python
body: <p>I use python for sending Email.I need to insert picture to body e-mail like this :</p>
  
  <p><a href="https://i.stack.imgur.com/doXuS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/doXuS.jpg" alt="I need like this:"></a></p>
  
  <p>But my output not show image like this :</p>
  
  <p><a href="https://i.stack.imgur.com/me3lO.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/me3lO.jpg" alt="enter image description here"></a></p>
  
  <p>I try many solution for fix it but it ineffectively.
  This's my code is below :</p>
  
  <pre><code>import smtplib
  from email.mime.image import MIMEImage
  from email.mime.multipart import MIMEMultipart
  from email.mime.text import MIMEText
  from email.header import Header
  import pandas as pd
  import win32com.client as win32
  import openpyxl
  import sys
  from PIL import ImageGrab
  from pathlib import Path
  df = pd.read_excel("xxxxx", sheet_name = "sample",nrows = 2, usecols = "A:W")
  df1 = pd.read_excel("xxxx", sheet_name = "sample")
  excel_path = ("sample")
  excel = win32.gencache.EnsureDispatch('Excel.Application')
  excel.Visible = False
  excel.DisplayAlerts = False
  wb = excel.Workbooks.Open(excel_path)
  ws = wb.Worksheets(1)
  win32c = win32.constants
  ws.Range("A1:H33").CopyPicture(Format=win32c.xlBitmap)
  img = ImageGrab.grabclipboard()
  image_path = str("path" + 'te.png')
  img.save(image_path)
  outlook = win32.gencache.EnsureDispatch('Outlook.Application')
  new_mail = outlook.CreateItem(0)
  user = df1.loc[34,"Unnamed: 4"]
  approver = df1.loc[36,"Unnamed: 4"]
  def FIN(xReceiveTO,xReceiveCC, xsubject, xBody):
    FROM = 'from@example.com'
    TO = 'To@example.com'
    CC = ""  
    #msg = MIMEMultipart()
    msg = MIMEText("&lt;html&gt;&lt;body&gt;&lt;h1&gt;ดำเนินการส่งให้ทีม AP แล้ว&lt;/h1&gt;" +
                   "&lt;p&gt;รายละเอีดตามข้อมูลด้านล่าง" +
                   "html_pages + &lt;br&gt;&lt;img src=te.png&gt;"+
                   "&lt;a href=""mailto:CFGFIN002@ngerntidlor.com?cc=" + user + ";"+ approver + "&amp;subject=Invoice%20ฉบับนี้ผ่านการพิจารณาอนุมัติจาก%20หัวหน้าทีมแล้ว%20รบกวนทีม%20AP%20ตรวจสอบสอบส่งต่อไปทีม%20Financial%20Planing%20and%20Analytics%20ครับ&amp;body=ทีม%20AP%20ได้ทำการตรวจสอบแล้วมีความเห็นว่าสมควร%20Approve%20ครับ&gt;Approve&lt;/a&gt; "+" "+"&lt;a href=""mailto:CFGFIN002@ngerntidlor.com?cc=" +user + ";"+ approver + "&amp;subject=Invoice%20ฉบับนี้ไม่ผ่านการพิจารณาอนุมัติจากทีม%20AP&amp;body=ทีม%20AP%20ได้ทำการตรวจสอบแล้วมีความเห็นว่าสมควร%20Reject%20ครับ%20&gt;Reject&lt;/a&gt;"
                   "&lt;/body&gt;&lt;/html&gt;","html","utf-8""")
    #msg['Subject'] =  Header(subject, 'utf-8')
    msg['Subject'] =  "Test"
    msg['To'] = ', '.join(xReceiveTO)
    msg['CC'] = ', '.join(xReceiveCC)
    msg['FROM'] = FROM
    s = smtplib.SMTP('10.45.1.25')
    s.send_message(msg)
    s.quit()
  </code></pre>
  
  <p>Please tell me how to add image to my body email /.</p>