I am working with a locked-down RHEL box.
The goal is to send an email with a file attached.
The only mail service available is sendmail (cannnot use sendemail, mail, mailx, mutt, etc.)
In addition, the uuencode command cannot be found and I cannot install sharutils.
I have verified that sendmail works with the simple test below:
echo "Subject: testing" | sendmail -v firstname.lastname@example.org
I have tried the command below but it just creates a dead.letter:
echo "Subject: testing" | sendmail /a /tmp/test.txt email@example.com
What is the correct way to send a file from the server using sendmail given the constaints?