Hello all.
I have the following script:
Code:
#!/bin/bash
a='MIME-Version: 1.0\n'
b="Subject: Message Title\n"
c="From: someone@thatdomain.net\n"
d="Content-Type: text/html; charset=utf-8\n"
e="Content-Disposition: inline\n"
f="<html>Hello\n"
g="</html>\n"
all=$a$b$c$d$e$f$g
echo $all > sendmail someone@somedomain.com
I obviously wish to send (pipe?) the concatenated result of my a,b,c,d,e,f,g variables as input to sendmail command. However, it does not work.
Also, i wish to read the contents of a simple text file and assign that content to yet another variable that will also be used in this context.
Any help will be greatly appreciated.
Panos