mailx not sending excel attachment properly | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

mailx not sending excel attachment properly

Shell Programming and Scripting


Tags
excel attachment in unix

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 04-17-2012
asp_julius asp_julius is offline
Registered User
 
Join Date: Apr 2012
Last Activity: 18 April 2012, 2:13 AM EDT
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
mailx not sending excel attachment properly

Hi,

I am trying to send email with attachment using mailx command. I am using the folowing command:

Code:
uuencode XX_HWSW_BUYERWISE_88963631_1.xls XX_HWSW_BUYERWISE_88963631_1.xls | mailx -s "Test Mail as Attachment" oracleams@xyz.com

I get the email in the inbox. However, when I try to open the excel attachment, it has junk characters instead of the actual excel file.

Please help.

Thanks & regards,
Anoop

Last edited by Franklin52; 04-17-2012 at 08:01 AM.. Reason: Please use code tags for code and data samples, thank you
Sponsored Links
    #2  
Old 04-17-2012
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 22 July 2014, 6:46 AM EDT
Location: NM
Posts: 10,151
Thanks: 267
Thanked 780 Times in 730 Posts
I cannot duplicate your problem. There has to be something else going on.
Please show us the following:

Can you ftp (binary copy) the xls file somewhere, or copy it to a usb drive, so you can then open it on your PC? -- need to know if the file itself is okay; the only way is to do the above copy. Please DO NOT assume your .xls file on the unix box is okay. It probably is not. It probably has UNIX carriage control, which excel may not like very much.
Sponsored Links
    #3  
Old 04-17-2012
asp_julius asp_julius is offline
Registered User
 
Join Date: Apr 2012
Last Activity: 18 April 2012, 2:13 AM EDT
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Jim,

I did FTP the .xls file on to my desktop. It opens with the intended output. The mailx works fine when I attach a PDF file.

Regards,
Anoop

---------- Post updated at 07:07 PM ---------- Previous update was at 06:53 PM ----------

I got the issue. I was using webmail to check the output. The attachment works fine with MS Outlook.

Regards,
Anoop
    #4  
Old 04-17-2012
methyl methyl is offline Forum Advisor  
Advisor
 
Join Date: Mar 2008
Last Activity: 18 April 2014, 5:13 AM EDT
Posts: 6,396
Thanks: 287
Thanked 672 Times in 642 Posts
Quote:
I got the issue. I was using webmail to check the output. The attachment works fine with MS Outlook.
I think that you have answered you own question.
Sponsored Links
    #5  
Old 04-18-2012
asp_julius asp_julius is offline
Registered User
 
Join Date: Apr 2012
Last Activity: 18 April 2012, 2:13 AM EDT
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

The issue is resolved but the question is not answered. Why does the .xls attachment doesnot open properly in webmail.

Regards,
Anoop
Sponsored Links
    #6  
Old 04-20-2012
ananthap ananthap is offline
Registered User
 
Join Date: May 2011
Last Activity: 25 September 2012, 4:23 AM EDT
Location: Chennai, India
Posts: 45
Thanks: 0
Thanked 2 Times in 2 Posts
In every DOS system, the file extensions alone identify the file type. These are internally associated with the appropriate programme to open the file.

In your webmail (assuming its a client), check the association for xls. If none, see whether it defaults to using local associations.

For an experiment, in the PC where you opened outlook, use mycomputer --> tools --> folderoptions --> filetypes and delete the association for XLS.

Check the result.

OK
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Mailx: How to send a attachment using mailx command Sriram.Vedula53 Shell Programming and Scripting 3 02-19-2010 04:12 AM
mailx attachment sending large file karthikn7974 Shell Programming and Scripting 3 08-20-2008 10:02 PM
Problem while sending message and attachment with mailx nihar.dutta Shell Programming and Scripting 2 08-09-2007 11:15 AM
Sending email with text & attachment using mailx haryadoon Shell Programming and Scripting 3 07-27-2006 01:49 AM
Problem with mailx command when sending attachment. miltony Shell Programming and Scripting 2 12-02-2005 11:43 AM



All times are GMT -4. The time now is 01:27 PM.