1832307 Members
2064 Online
110041 Solutions
New Discussion

elm

 
SOLVED
Go to solution
Samboja
Advisor

elm

Hi all,

I have a problem. Can I send email by elm which the recipient and attachment stored in a file and redirected to elm, like this :
#elm < file
4 REPLIES 4
Michael Tully
Honored Contributor

Re: elm

Hi,

Have a look at this link

http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x7a92ee3e323bd5118fef0090279cd0f9,00.htm

HTH
-Michael
Anyone for a Mutiny ?
Steven Sim Kok Leong
Honored Contributor

Re: elm

Hi,

elm2.4ME+PL54 has the "-A" option which works in batch mode.

# elm -s"$SUBJECT" -A $ATTFILE $MAILTO < $TXTFILE

If you don't have this version of elm, you can use alternative methods (not using elm), such as using sendmail eg.:

# echo "From: $LOGNAME\nTo: $MAILTO\nSubject: $SUBJECT\nMime-Version: 1.0\nContent-Type: text/plain\n" > /tmp/file
# cat $TXTFILE >> /tmp/file
/usr/lib/sendmail -t -oi < /tmp/file

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Samboja
Advisor

Re: elm

Thanks Mike & Steve for your respond.

FYI, I'm using HP-UX 11.00 elm version is 17, which version of elm can work on this ? if should be upgraded, what patches I need ?

regards,

Boja
Steven Sim Kok Leong
Honored Contributor
Solution

Re: elm

Hi,

Note that the elm version that ships with HP-UX 11.00 suffers from a buffer overflow vulnerability.

So to fix the problem you just need to download the latest stable version (2.5.3) from:

http://www.instinct.org/elm/files/tarballs/elm2.5.3.tar.gz

For more information, please refer to:

http://www.securiteam.com/unixfocus/5HP0B0K3PM.html

Give the commands I specified in my previous posting a try. If it doesn't work, it is not the elm that supports this feature.

In any case, I think you are better off using sendmail. Afterall, it comes with HP-UX anyway. :)

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com