How to send HTML email using linux command line

前端 未结 11 2093
无人共我
无人共我 2020-11-28 04:29

I need to send email with html format. I have only linux command line and command \"mail\".

Currently have used:

echo \"To: address@example.com\" >         


        
11条回答
  •  南笙
    南笙 (楼主)
    2020-11-28 04:53

    On OS X (10.9.4), cat works, and is easier if your email is already in a file:

    cat email_template.html  | mail -s "$(echo -e "Test\nContent-Type: text/html")" karl@marx.com
    

提交回复
热议问题