From b62ce96a19b95406d9f520c96267b7281bb7bf6d Mon Sep 17 00:00:00 2001 From: otthorn Date: Fri, 9 Oct 2020 00:29:55 +0200 Subject: [PATCH] :ambulance: append in the right order --- send_html_mail.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/send_html_mail.sh b/send_html_mail.sh index a653d0b..af26029 100755 --- a/send_html_mail.sh +++ b/send_html_mail.sh @@ -14,8 +14,8 @@ echo "Sending mail to $1" -echo "To: $1" >> tmp_mail.txt -cat headers.txt > tmp_mail.txt +echo "To: $1" > tmp_mail.txt +cat headers.txt >> tmp_mail.txt echo "" >> tmp_mail.txt # the newline is very important, RFC 822 cat mail.txt >> tmp_mail.txt