发送内嵌图像记录在这里。
在HTML中,您将像这样引用图像:
<html>Inline image here: <img src="cid:test.jpg"></html>
然后,定义一个Multidict,将文件发布到API:
files=MultiDict([("inline", open("files/test.jpg"))])披露,我为Mailgun工作。:)

发送内嵌图像记录在这里。
在HTML中,您将像这样引用图像:
<html>Inline image here: <img src="cid:test.jpg"></html>
然后,定义一个Multidict,将文件发布到API:
files=MultiDict([("inline", open("files/test.jpg"))])披露,我为Mailgun工作。:)