cancel
Showing results for 
Search instead for 
Did you mean: 

mail format uuencode x MIME

SOLVED
Go to solution
Vogra
Regular Advisor

mail format uuencode x MIME

Hi all,
I'm trying to send a message from unix prompt (sendmail/elm), but in the client the messagem begins with:
------------------------------------------
begin 660 lima_doc.htm
M/$A434P^"CQ"3T19/@H\1D].5"!35%E,13TB1D].5"U&04U)3%DZ("=#3U52
M2452($Y%5R<[($9/3E0M4TE:13HW<'0[($9/3E0M5T5)1TA4.DY/4DU!3#LB
------------------------------------------
I checked about PHNE_24522 (11.11) it's im my system. What about? I want to send im MIME format. It's possible?
Thanx,
Lima.
We are spirits in the material world
4 REPLIES
lawrenzo
Trusted Contributor

Re: mail format uuencode x MIME

what command are you typing?
hello
Vogra
Regular Advisor

Re: mail format uuencode x MIME

I use the command line below:

/usr/bin/awk '{print $0 "\r"}' $1 | /usr/bin/uuencode $1 | mail $2

or

using a script
envia.sh with:
uuencode lima_doc.txt |mailx -m -s "reportdata" my_email@domain.com


and then envia.sh < lima_doc.txt
We are spirits in the material world
renarios
Trusted Contributor
Solution

Re: mail format uuencode x MIME

Hi Vogra,

I have a mail function which I use to mail datafies to several people. Maybe it is helpfull:

RECEIVER=
function f_mail
{
filepath=""
datfile="${filepath}/${file}"
extension="$(echo ${file}| cut -d . -f 2-)"
subject=" "
message=""

#"Convert file to DOS mode..."
unix2dos ${datfile} ${datfile} 2>/dev/null

# Send the E-mail message... use -EOF to ignore leading tabs
/usr/bin/mailx -m -s "${SUBJECT}" ${RECEIVER} <<-EOF

${message}

Bij dit bericht is het bestand ${filealias} als bijlage toegevoegd.
~< ! uuencode ${datfile} ${datfile}

~.
EOF
}

Succes,

Rene

Nothing is more successfull as failure
Dave La Mar
Honored Contributor

Re: mail format uuencode x MIME

Lima -
Attached you will find multiple examples.
We keep this handy for our reference.

Regards,

dl
"I'm not dumb. I just have a command of thoroughly useless information."