1.

Solve : sendmail?

Answer»
I wrote a script (UNIX - Bourne shell) enabling a user to send (email) a file attachment to ANOTHER user. The script works fine when executed from the COMMAND line but I would like to execution to be automatic, including the message.

I tried the following
tty -s && echo "Included the requested file from .... \n\n" << EOF

The last line of the script, after setting up the email (FUNCTION), is
) | /usr/lib/sendmail -t
EOF

The script seems to execute but no email is sent or rather delivered. Is there ANYBODY that can help?
Try this command:

sendmail [emailprotected] yourfile
cntl-D
sends it to that mailbox.


Discussion

No Comment Found