Mail Attachments name change in shell script


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Mail Attachments name change in shell script
# 1  
Old 05-03-2012
Mail Attachments name change in shell script

Hi Guys,

I have written a script to send some .csv files to my client.The script work fines and they receive file correctly.But,The problem is the file name is changed to "attachment" from "123.csv" even after using uuencode.

Please someone help me ASAP.

My Script part looks just like this

Code:
uuencode 123.csv 123.csv | mailx -s "TEST FILE" 123@apple.com

yet we receive it as "Mail Attachment" in the Name part of attachments.

Last edited by Scrutinizer; 05-03-2012 at 03:54 AM.. Reason: code tags
# 2  
Old 05-03-2012
Maybe use mutt instead
Code:
mutt -a

# 3  
Old 05-03-2012
Quote:
Originally Posted by maskofzorro
Maybe use mutt instead
Code:
mutt -a

Thanks for the reply.I am using Mac OS X and in that i couldnt find mutt.How to get it.
# 4  
Old 05-03-2012
What Mail Client is being used to read the mail?
# 5  
Old 05-03-2012
I am sorry,i am newbie.May i know how to find the mail client in my terminal.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Adding Attachments to mail

Hi, I need to send a mail with html code in body and an attachment along with the body and subject. The html code must display a table with data in it in the mail. I have tried the 'sendmail' command, but I am am able to display the table in the mail and unable to attach an attachment. ... (5 Replies)
Discussion started by: Durga Prasad NK
5 Replies

2. Shell Programming and Scripting

Format text in mail attachments

Hi Gurus, I am working on a script that sends a text file attachment on mail from unix server to my widows outlook mail box. When i see the text file in UNIX it is perfectly formatted but when i open the same file in the mail, it looks weird as the next line is added to the same line. For... (10 Replies)
Discussion started by: jayadanabalan
10 Replies

3. Shell Programming and Scripting

Email Attachments in shell script

Hi Fellas, I have a script that queries a sybase DB through isql and appends to a file, say file.csv I want to use the mail command in the shell script to email the file to me. i tried the following command but it doesn't work. can any one suggest whats wrong here. Note that i need the file... (2 Replies)
Discussion started by: Irishboy24
2 Replies

4. UNIX for Advanced & Expert Users

Mail attachments getting corrupted...

Hi , Whenever I try to send mails with attachments to external email Id's the attachment is not encoded properly which appears along with body (text) of the mail. The attachement is always getting corrupted. Can anyone please suggest a solution. Regards, Sandipan (1 Reply)
Discussion started by: Sandipan
1 Replies

5. Solaris

mail with attachments

I want to send a mail with three attachments, but nothing happened. I tried it with mail and mailx. Are there special options for these commands or is it not possible to send mails under Solaris with attachments? Must there be special adjustments in the environment? Can anyone give an... (6 Replies)
Discussion started by: ninjadan
6 Replies

6. AIX

Send mail attachments and have a mail body

Hi, How can I send mail attachments from shell script (AIX) and have a mail body as well ? Thanks in advance. (1 Reply)
Discussion started by: shibajighosh
1 Replies

7. UNIX for Dummies Questions & Answers

sending attachments in mail

Hi , i have tried the following command to send an email with an attachment its working fine but i am getting mail with the embeded content inside the mail that too truncated. i wanted it as an attachment. /usr/lib/sendmail -F "MAC SIA" address "rajendra@abc.com.sg" -t <... (6 Replies)
Discussion started by: rajendragora
6 Replies

8. Shell Programming and Scripting

Sending attachments using email through shell script

Hi all, I have written a shell script which sends emails with attachments to our clients. All our attachments are simple flat files (.txt format). The script is working fine and sending the attachments to the mail-ids except that, when i am sending the attachments to non-outlook users (Like... (6 Replies)
Discussion started by: symhonian
6 Replies

9. UNIX for Dummies Questions & Answers

file name got cut when using mail attachments

I am using the following command to send a zip file as an attachment to my internet email-id. uuencode ABC_DEFG_HIJ.zip ABC_DEFG_HIJ.zip | mail -s "attachment from shell" pal@yahoo.com Eventhough i have given the attached file as 'ABC_DEFG_HIJ.zip', when i receive the mail in my internet... (3 Replies)
Discussion started by: Pal
3 Replies

10. UNIX for Dummies Questions & Answers

mail attachments

I'm writing scripts on HP-UX. Is there a way to attach a file to a mail message. I don't want to imbed the data in the mail message. (1 Reply)
Discussion started by: Multithreaded
1 Replies
Login or Register to Ask a Question