Hello and good day! Attempting to create performance monitoring scripts/reports and would like to forward output as a SMTP email attachment using MailX:
Code:
echo "Test email body text" | mailx -s "Test email subject" -a output.txt someone@gmail.com
Recieving the following error message:
Code:
/opt/sbin/sendmail: No such file or directory
Searched/located sendmail
Code:
find / -name sendmail
/usr/sbin/sendmail
As a test, I copied /usr/sbin/sendmail to /opt/sbin/sendmail .. SMTP email attempt failed again:
Code:
cp /usr/sbin/sendmail /opt/sbin/sendmail
echo "Test email body" | mailx -s "Test email subject" -a output.txt someone@gmail.com
send-mail: applet not found
rm /opt/sbin/sendmail
SMTP email test via amtm is successful; SMTP email test using basic sendmail is also successful but unable to specify subject, add body text, and attach file (all needed).
In advance, your consideration and suggestions are appreciated.
Code:
echo "Test email body text" | mailx -s "Test email subject" -a output.txt someone@gmail.com
Recieving the following error message:
Code:
/opt/sbin/sendmail: No such file or directory
Searched/located sendmail
Code:
find / -name sendmail
/usr/sbin/sendmail
As a test, I copied /usr/sbin/sendmail to /opt/sbin/sendmail .. SMTP email attempt failed again:
Code:
cp /usr/sbin/sendmail /opt/sbin/sendmail
echo "Test email body" | mailx -s "Test email subject" -a output.txt someone@gmail.com
send-mail: applet not found
rm /opt/sbin/sendmail
SMTP email test via amtm is successful; SMTP email test using basic sendmail is also successful but unable to specify subject, add body text, and attach file (all needed).
In advance, your consideration and suggestions are appreciated.