How can I create my entire mail item in a file, and then send it via sendmail? Eg: I have a txt file containing all my mail info, To:, From: Subject: body...etc. I thought I could use the '-t' flag to pull all this info, eg:
$ sendmail -t mailitem.txt
However, I get the error :
No recipient addresses found in header
even though I have a 'To: aaa@aaa.com' line in the file.
Any ideas?
$ sendmail -t mailitem.txt
However, I get the error :
No recipient addresses found in header
even though I have a 'To: aaa@aaa.com' line in the file.
Any ideas?