LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Automating Pine (http://www.linuxquestions.org/questions/linux-software-2/automating-pine-395270/)

kaplan71 12-21-2005 11:04 AM

Automating Pine
 
Hi there --

Is there a way to automate pine to send an e-mail with an attachment?

For example, the command syntax that I currently have is:

/usr/bin/pine -attach <path to filename> <destination address>

This configuration opens pine and allows me to manually send the attached file via <CTRL> <X>.

Is there a way to accomplish this without my manually having to send the e-mail? Thanks.

bathory 12-22-2005 04:21 AM

You can use mail (or nail in some distros) to do this:
Code:

mail -s subject recipient@domain.com < attached-file


All times are GMT -5. The time now is 05:21 AM.