Pro odesílání e-mailů s přílohami ze scriptů a nebo příkazové řádky lze využívat příkaz uuenview, který lze nalézt v balíčku uudeview-*.rpm
echo "Toto je vlastni text mailu" | uuenview -b -m [email protected] -s "Toto je Subject zpravy" -a obr1.gif obr2.jpeg
UUENVIEW 0.5pl20 -- a simple encoder (w) 1995 Frank Pilhofer
usage:
uuenview [-type] [options] file [...]
Options:
-b,-u,-x,-y Encode files as Base64, Uuencoding, Xx, yEnc,
-t,-q Plain text or Quoted-Printable, respectively
-o Encode to file(s) using the original's base name
-od path Same, but write files to selected path
-m addr Send file(s) by mail
-p group Post file(s) to newsgroups
-a Read message from stdin and attach files
-lines Chunk into messages of lines lines each
See uuenview(1) for more details.
Example:
uuenview -b -2000 -m root -o uudeview.tar.gz
Encodes 'uudeview.tar.gz' as Base64 into 2000-line chunks.
It is both mailed to your system administrator and written
to the files uudeview.001 and uudeview.002