how to Copy image in the body of mail

Asked by muni on 2020-04-30

Hello friends,
I would need your help in copying image in body of the mail,is it possible??
so far i know we can attach mail.Below is the code i have to attach mail.
def outlook():
    img = capture(Region(1,0,1893,1125), "file1")
    img2 = capture(Region(1,0,1893,1125), "file2")
    shutil.move(img2, os.path.join(r'C:\Users\ramamun\Downloads\Sikuli', "file2.png"))
    wait(3)["C:\Program Files (x86)\Microsoft Office\Office15\OUTLOOK.EXE", "/c", "ipm.note", "/m", "<email address hidden>&subject=Itrac Dashboard checks%20-SOW&body=Hello Muni%20SOW Checks have been completed%20For Itrac", "/a", img])



Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
muni (rajeshmuni) said : #1

hi ANy update for me please

RaiMan (raimund-hocke) said : #2

This is too special.

check the workflow manually and especially the subprocess call, that it does what you want.

You have to do some more checks and debugging.

Can you help with this problem?

Provide an answer of your own, or ask muni for more information if necessary.

To post a message you must log in.