1754282 Members
2934 Online
108813 Solutions
New Discussion юеВ

Re: mail. pl

 
Son dam bi
Advisor

mail. pl

I use the command "mail.pl my_address < /tmp/file" can send mail to my mail box , the mail content is /tmp/file , but if I do not add < /tmp/file , the mail will not be send , it wait me to input data , then press cltr-d to send .

Execpt use "< /tmp/file" , how can I send the mail to may mail box with the messages in /tmp/file ? thx
2 REPLIES 2
Michal Kapalka (mikap)
Honored Contributor

Re: mail. pl

Ivan Ferreira
Honored Contributor

Re: mail. pl

├В┬┐Why are you searching for other methods of doing the same thing?

You could probably do:

cat /tmp/file | mail.pl

According to the online documentation, you can use the -a option to "attach" a file instead of sending as a body. I don't have the program to try that.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?