Sending e-mail from sendmail with headers

view full story

http://serverfault.com – I am trying to send an e-mail with sendmail, but I need to specify some headers (From, Content-Type, Subject). Here is the command I am currently running: echo "Content-Type: text/plain\r\nFrom: [email protected]\r\nSubject: Test\r\n\r\nThe body goes here" | sendmail -f [email protected] [email protected] The problem is that the headers are not being set. Do I have the format correct? (HowTos)