How to send a html email with the bash command “sendmail”?

后端 未结 8 2275
旧巷少年郎
旧巷少年郎 2020-12-13 09:50

Anyone has a demo available?

Sendmail is said to be not scalable,but it\'s free,so I decided to use it first for now:)

8条回答
  •  情深已故
    2020-12-13 10:25

    It's simpler to use, the -a option :

    cat ~/campaigns/release-status.html | mail -s "Release Status [Green]" -a "Content-Type: text/html" to.address@company.com
    

提交回复
热议问题