1834882 Members
2217 Online
110071 Solutions
New Discussion

Mailx with file attach

 
Rene Mendez_4
Super Advisor

Mailx with file attach

My principal mail server is Exchange 2000 with sp3.

I send file attach with mailx:
ux2dos arch | uuencode esrc | mailx correo

I Upgrade exchange server with
roolup package:
http://www.support.microsoft.com/Kb/870540, http://support.microsoft.com/?kbid=894549

But file attach change the character set and wrong file.

I need send the file attach.

Regards.
Rene
4 REPLIES 4
Sandman!
Honored Contributor

Re: Mailx with file attach

Rene,

You are getting the wrong file because you are not specifying the correct one in the uuencode command. As far as the character set problem, that's something between your Unix server and the Exchange server. See if they have equivalent locales defined.

cheers!
Rene Mendez_4
Super Advisor

Re: Mailx with file attach

Hello

The problem is only when apply the patch in the exchange server.

Regards
Rene
RAC_1
Honored Contributor

Re: Mailx with file attach

This is a known issue. The new microsoft knowledge database says that uuencode messages are now treated as MIME messages. (And something like that.) You must be seeing the attachement as jumk chars. Something as follows.

begin
mode xyz
jjdj'['df'
something mores
end

What you need to do use, prepare .mailrc file in home directory and set "
set mimeheaders=no" in that file. To turn mime header off for all users, you will have to set this in /usr/lib/mail/mailrc file.

If you do not want to use above options, you can also do mailx -m and sendmail -m options.
There is no substitute to HARDWORK
Dave La Mar
Honored Contributor

Re: Mailx with file attach

Rene -
I believe RAC has hit it on the head with the -m option.

Attached you will find examples of the many types of mailx transaction we use in our shop.

Regards,

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