Email with .dat file as attachment

Hi, I am trying to email a .dat file as an attachment from unix MS-outlook.

I tried uuencode but it is not attaching the file, rather it is placing some junk data in the body of mail. Below is my code

(cat Message.txt; uuencode  Attach_File.DAT Attch_File.DAT) | mailx -s "SUBJECT" glaveti@frk.com

Can anyone please help?

Thanks

this command is correct, what mail client did you use?

Can you try to send to a gmail?

Yes i tried sending to gmail,but im facing the same problem

You have to uudecode the junk in the body of the mail.

the below code is working when iam sending it to gmail but it is not working for microsoft outlook.

(uuencode /gdw/gdw_p4/dev/gid/ff_header.txt ff_header.txt | mailx  -s "hi" xxx@gmail.com)

Try converting the txt file to dos format, via unix2dos or similar, before using uuencode.

Hi,

I tried converting the file using unix2dos and sent the converted file, but still I am getting the file data as corrupted data in the body of the mail and the attachment is coming. This problem is only occurring for MS_Outlook.

Thanks

Try to use a .mailrc file with this as content:

set crt=21
set encoding=8bit
set charset=iso-8859-1

Why don't you attach the .dat file with the -a option?

not all mailx versions support '-a' - must be GNUism.

But mailx does, according to this forum's man pages.

Try changing the 'Man Page Set:' to POSIX or AiX...

Sorry - you're right!