Adding Subject and From to sendmail
Posted on 2003-10-30
Hi, based on server restrictions and a recently asked question, I am sending text file attachments using
system("cat nc/jh10083.txt | unix2dos | uuencode nc/jh10083.txt | /usr/sbin/sendmail -f me\@myhost.com me\@myhost.com");
How do I add Subject, From, and possibly text in the body of the email?
(the -f did not show the From when received)
A previous question described
echo -e "Subject: A subject\n\nMessage text" | sendmail -f my@address recipient@address
to add the Subject
But I couldn’t put it all together.