Embedding an image in an email using linux commands

前端 未结 6 665
醉话见心
醉话见心 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-02 07:30

    EMAILBODY="echo \"Alarm went off! "
    EMAILATTACH=""
    EMAILATTACH=$EMAILATTACH" -a "/home/uat12mgr/XXDBD_AR_INV_PRINT.jpg""
    EMAILBODY=$EMAILBODY"
    " EMAILBODY=$EMAILBODY"\" | mutt -e \"set content_type=text/html\" -s \"House Alarm went off!\"" EMAILSTRING=$EMAILBODY$EMAILATTACH" -- myaka@abc.com" eval $EMAILSTRING

提交回复
热议问题