1834406 Members
1797 Online
110067 Solutions
New Discussion

how to cc in elm command

 
subrata  Sur
Frequent Advisor

how to cc in elm command

I have use the command

cat errors|elm -s "This is atest mail " subrata.sur@gecis.ge.com

But what option i have to use so that i can send cc subrata.sur@ge.com

Plz help

Thanx in advance

Subraat kr sur
4 REPLIES 4
Bill Hassell
Honored Contributor

Re: how to cc in elm command

Just add additional addresses with a comma:

cat errors|elm -s "This is atest mail " subrata.sur@gecis.ge.com,subrata.sur@ge.com


Make sure there are no spaces in the email address list. You can use the same format for mailx:

cat errors|mailx -s "This is atest mail " subrata.sur@gecis.ge.com,subrata.sur@ge.com


Bill Hassell, sysadmin
Cem Tugrul
Esteemed Contributor

Re: how to cc in elm command

Hi,
i do not know the author but i have a script
from my archive;
#! /usr/bin/csh
#: send email with attachments, using 'elm'
# $1 = list of message recipients (enclosed in quotes if more than one)
# $2 = subject
# $3 = name of file containing message text
# $4 and on = names of files to be attached

set elmfile=/temp.files/elm.`date +"%Y%m%d%H%M%S" `.$$
set tolist=($1)
set subject=($2)
cat $3 > $elmfile

shift
shift
shift

foreach file ($argv)
echo '[include '$file' attachment/zip base64]' >> $elmfile
end

setenv TERM vt320
setenv TMPDIR /temp.files/
if (0 == $#subject) then
elm $tolist < $elmfile
else
elm -s "$subject" $tolist < $elmfile
endif

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
subrata  Sur
Frequent Advisor

Re: how to cc in elm command

The above two option i have tried ButI have received the mail with out any cc id ...

Any other idea How to use CC in the mail

Thanx in advance

Subrata Kr Sur
Cem Tugrul
Esteemed Contributor

Re: how to cc in elm command

Hi Subrata,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=68106

Good Luck,

There is your answer!!!
Our greatest duty in this life is to help others. And please, if you can't