i am using a template to send an html file in the body of an email. now what i want to do is to pass the SUBJECT of the email via command like in the shell script.
My html file looks like this:
To: test@test.com
From: noreply@test.com
Subject: subject will change
Content-Type: text/html; charset="us-ascii"
<html>
this is test email body
</html>
bash script:
email=/usr/sbin/sendmail
report=/opt/html_report.html
template=/opt/email.template
$email -t < $final_report.html