2013-04-30 2 views

답변

1

http://unixnair.blogspot.com.au/2011/09/how-to-send-email-with-html-formatting.html

#!/usr/bin/ksh 
# Script to send html email 
# Written by Madhu 

FROM="[email protected]" 
TO="[email protected]" 
SUBJECT="This email has html contents" 
CONTENTS="/home/madhu/scripts/mail_text.html" 
HEADER="From: ${FROM}        \ 
\nTo: ${TO}          \ 
\nSubject: \"$SUBJECT\"        \ 
\nContent-Type: text/html; charset=us-ascii \ 
\nContent-Transfer-Encoding: 7bit     \ 
\nMIME-Version: 1.0" 
#echo $HEADER; 
(echo $HEADER; cat $CONTENTS) | /usr/sbin/sendmail -t 
+0

정말로 감사합니다.이 대답은 정말로 도움이됩니다. – clarkseth

+0

걱정할 필요가 없습니다. 질문에 대한 답이 가장 적절하다면 올바른 것으로 선택할 수 있습니다. –

관련 문제