2012-10-31 170 views
2

我想執行一個Unix shell腳本來使用mailsend生成電子郵件。我需要格式化這是一個HTML文件中使用它的內容類型Unix shell腳本 - mailsend

我的腳本如下,

sender="[email protected]" 
subject="My Subject" 
server=000.000.000.000 
message=`cat fun.txt` 
email_add="[email protected]" 
nohup ./mailsend -f $sender -t $email_add -u "$subject" -m "$message" -s $server 
    -l fcbulog 

我如何可以利用上面的腳本

回答

0

您可以設置Content-Type實現格式的電子郵件中的HTML text/html,然後使用您的html作爲消息的正文。