Difference between revisions of "Mime-construct installation"
From Kolmisoft Wiki
Jump to navigationJump to search
Line 58: | Line 58: | ||
cd /usr/src/ | cd /usr/src/ | ||
wget http://193.138.191.205/packets/CPAN-1. | wget http://193.138.191.205/packets/CPAN-1.9205.tar.gz | ||
tar xvfz CPAN-1.9102.tar.gz | tar xvfz CPAN-1.9102.tar.gz | ||
cd CPAN-1.9205 | cd CPAN-1.9205 | ||
perl Makefile.PL | perl Makefile.PL | ||
make install | make install |
Revision as of 09:56, 2 April 2008
This package is used to send faxes to emails.
Installation
Debian
apt-get install mime-construct
Centos/Fedora
cd /usr/src wget http://search.cpan.org/CPAN/authors/id/R/RO/ROSCH/mime-construct-1.9.tar.gz tar xzvf mime-construct-1.9.tar.gz cd /usr/src/mime-construct-1.9 perl Makefile.PL make install
Testing
Program installed
Write in bash to test:
mime-construct
You should see:
mime-construct: no recipients specified
If you see something else - troubleshoot.
Simple email sending
mime-construct --to "your@mail.com" --subject 'hi there' --string "test"
Email with attachment
/usr/bin/mime-construct --header 'Sender: MOR_FAX@TEST.COM' --header 'From: MOR_FAX@TEST.COM' --to your@mail.com --subject 'Email test' --file-attach /var/spool/asterisk/faxes/fax_test.pdf
Errors
Can't locate Proc/WaitStat.pm in @INC
This happens for Centos/Fedora. Fix:
perl -MCPAN -e "install Proc::WaitStat"
Then press ENTER half a million times (28 actually) and select continent/country when it asks.
Can't locate MIME/Types.pm in @INC
perl -MCPAN -e "install MIME::Types"
Can't locate CPAN.pm in @INC
http://guides.ovh.com/InstallCpan
cd /usr/src/ wget http://193.138.191.205/packets/CPAN-1.9205.tar.gz tar xvfz CPAN-1.9102.tar.gz cd CPAN-1.9205 perl Makefile.PL make install