1828219 Members
1932 Online
109975 Solutions
New Discussion

Help , need elm scripts

 
SOLVED
Go to solution
violin_1
Advisor

Help , need elm scripts

Hi all,

i need some helps.

I had a red hat Linux release 7.3 ,
I need to send mails from server and attach files ,

ex.
to : violin@gbm.com.tw
Subject : Test Mail
Attach File : /home/oracle/today.log , /home/oracle/today.txt

How could I do?

Thanks.

Violin.
3 REPLIES 3
Jean-Pierre Denis
Valued Contributor
Solution

Re: Help , need elm scripts

Hi,

I guess you could use uuencode.

Take a look at this thread:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x720f36e69499d611abdb0090277a778c,00.html

Thanks,
JP
Open your Mind and use Open Source software...
Balaji N
Honored Contributor

Re: Help , need elm scripts

see if the below tip helps.
-balaji

:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################

Sub : Sending attachments from command line (#1) LOST #225

If you have mutt installed, do:
mutt someone (at) somewhere.com -a /tmp/file.tar.gz \
-s "subject line" \
-x < message.txt

####[binand (at) cysphere.com]################################
:



:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################

Sub : Sending attachments from command line (#2) LOST #228

Install 'mpack' from http://www.funet.fi/pub/unix/mail/mpack/
Usage: $mpack -s "Subject header" -d message.txt something.tar.gz someone (at) somewhere.net

####[bish (at) nde.vsnl.net.in]###############################


-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Sergejs Svitnevs
Honored Contributor

Re: Help , need elm scripts

To send it in uuencoded form for a Unix user:

uuencode /home/oracle/today.log /home/oracle/today.txt | elm -s "Test Mail" violin@gbm.com.tw

To send it as a mime attachment to a PC user

mpack -s "Test Mail" -d /home/oracle/today.log /home/oracle/today.txt violin@gbm.com.tw

Regards,
Sergejs