Embedding an image in an email using linux commands

前端 未结 6 645
醉话见心
醉话见心 2021-01-02 06:33

Is there a way to embed images into the body of an email using linux commands like mutt or sendmail?

I used this

mutt -e \         


        
6条回答
  •  被撕碎了的回忆
    2021-01-02 07:07

    It's even possible with the basic mail command

    You want to create a mime HTML email a la:

    How to embed images in email

    Then take the headers (all the lines before the first boundary), remove them from that input and add them individually with the -a command after mail such as:

    https://stackoverflow.com/a/12262421/2244213 or Sending HTML mail using a shell script

提交回复
热议问题