1748270 Members
3974 Online
108760 Solutions
New Discussion юеВ

Re: Mail

 
Managed Services
Frequent Advisor

Mail

What is the method and instructions to mail files as attachments to a mail server on the network.
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: Mail

Do a search on
mail +attachments
That should help.

Pete

Pete
Sachin Patel
Honored Contributor

Re: Mail

Hi

sendmail abc@yahoo.com << END
`cat message.file`
`uuencode file1 attachment1`
`uuencode file2 attachment2`
END

Sachin
Is photography a hobby or another way to spend $
MANOJ SRIVASTAVA
Honored Contributor

Re: Mail

Hi Managed Services


You may like to look at this :


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


or you can look at http://www.stokely.com/unix.sysadm.resources/email.html


you can use a variet of s/w like mpack etc to attach a file

Manoj Srivastava
Sanjay_6
Honored Contributor

Re: Mail

Hi,

Look at the top read solution at the bottom of the hp-ux forum homepage,

http://forums.itrc.hp.com/cm/FamilyHome/1,,117,00.html

One of the top read solution is about sending email attachments,

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

You can also do a search on the forum solutions for more such examples.

Hope this helps.

Regds
MANOJ SRIVASTAVA
Honored Contributor

Re: Mail

John Carr_2
Honored Contributor

Re: Mail

Hi

I have read through the reccomended threads from the previous postings and I think this is your solution.

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

cheers
John.
Zach Parker
Occasional Advisor

Re: Mail

The simplest way I know of:

uuencode | mailx -m -s "Subject"

You can do a similar activity with mmencode.

Z.