简体   繁体   中英

How to send html mail with Content-ID header using mutt in command line

I was trying to send a html mail with images. But I am not familiar with mail headers, how can I add a image tag using cid , ie attach an image and make it shown in the html content?

<img src="cid:x">

This is my testing command:

mutt -s "test" jason@example.com \
    -e "set content_type=text/html" \
    -a /path/to/image <<MAIL
<img src="cid:0">
MAIL

It seems that this is a new feature onging in neomutt project. Currently there's no way to add Content-ID header for attachments. See PR: https://github.com/neomutt/neomutt/pull/2049 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM