about attachment with metasend command


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers about attachment with metasend command
# 1  
Old 08-11-2007
about attachment with metasend command

Hi,

I used the metasend command with ( -n -f ) option to send an email with
an attachment. (-m ''application/zip" )

Normally it works for text files, zip files and excel files.

Suddenly, a user attached an excel file and I received two emails.

The subject is ' [WARNING : A/V UNSCANNABLE] [WARNING: A/V
UNSCANNABLE] ...............................(part 1 of 2) '

And the second email only contains non-readable data.

The I used the file command to see why normally an excel file can be
attached but not this one.

The format of the excel file which can be attached is : data

The format of the excel file which cannot be attached is : awk program
text

Anyone can help. Thanks in advance.

Ivan

Last edited by egckhad; 08-11-2007 at 01:36 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unable to send attachment using mailx command

I am unable to send email with attachment using the mailx command. Without the attachment, the email goes through file. This is the command I use. Works : $ echo "Test" | mailx -s "Test" username@website.com Fails : $echo "Test" | mailx -a all-dss-accounts.txt -s "Test"... (3 Replies)
Discussion started by: nkarthik_mnnit
3 Replies

2. Shell Programming and Scripting

Attachment readablity using mailx command

Team, Presently i have the below script which sends the attachment but in a .bat method, i want it more of readable method.i.e(abc.log) for which i am doing the cat cat abc.log | mailx -s "Todays logs $(date)" <my_email_id.com> Regards Whizkid Please use code tags next time for... (14 Replies)
Discussion started by: whizkidash
14 Replies

3. Shell Programming and Scripting

Sending attachment using sendmail command

Send_Mail() { C_Date=`date +"%m/%d/%Y"` #Subject="MMDB Load Job Status" for i in `cat $Metafile` do if then email_address=`echo $i | cut -d":" -f2` /usr/lib/sendmail "$email_address" < $Email_File fi done } this is the send mail command i am using .please let me... (1 Reply)
Discussion started by: Alok K Yadav
1 Replies

4. Shell Programming and Scripting

Command to identify mail attachment

Hi, I need to send a email with attachment from windows system to a unix system. when ever a new email arrived the unix system has to check and extract or download the attachment then move to seprate folder. For identifying the attachment and downloading any command available. Thanks. (1 Reply)
Discussion started by: nag_sathi
1 Replies

5. UNIX for Advanced & Expert Users

HTML and attachment using mutt command

Hi All, I want to attach the file as well send html content in the mail body using mutt command or any other command.(uuencode is not present). Please help me. Thanks in advance (1 Reply)
Discussion started by: arukuku
1 Replies

6. UNIX for Dummies Questions & Answers

about metasend

Hi, I got a problem in using metasend if the file name contains 'testL@test.com -t test2@test.com -f test.txt -m text/plain --Fail-- /usr/local/bin/metasend -b -s "test subject" -F testL@test.com -t test2@test.com -f test.txt -m text/plain it showed the error "set: No match." Ivan (1 Reply)
Discussion started by: egckhad
1 Replies

7. UNIX for Advanced & Expert Users

Sendmail with attachment command line ?

hi.. Could somebody guide me how to send mail with attachment using sendmail command in unix ? Thank you, (2 Replies)
Discussion started by: bh_hensem
2 Replies

8. UNIX for Dummies Questions & Answers

Send an attachment with metasend

Hi, How to send an attachment of which the name contains the space. Following is the command I tried. metasend -b -s "test subject" -F "test@yahoo.com" -t "test@test.com" -f "test.txt" -m "text/plain" -n -f "test 123.txt" -m "application/xls" If the file name contains no space,... (0 Replies)
Discussion started by: egckhad
0 Replies

9. Shell Programming and Scripting

Problem with mailx command when sending attachment.

Hi, I have tried to sent a mail with body and attachment. But the shell script got hanging while executing that command. The command is "(cat body;uuencode att1.csv)|mailx -s "Production Monitoring Report(Unix Side)" milton.yesusundaram@patni.com" where body is a file having a single line.... (2 Replies)
Discussion started by: miltony
2 Replies

10. UNIX for Dummies Questions & Answers

Unknown recipient when using metasend

Hi, We use metasend to send e-mail from our app. This works fine with most kinds of mail, for example plain text, HTML with images and mail with attachments. But we still have one problem: If the to-address is misspelled, then still everything seems to be fine. We don't get any message back... (4 Replies)
Discussion started by: sjohnsen
4 Replies
Login or Register to Ask a Question
metasend(1)						      General Commands Manual						       metasend(1)

NAME
metasend - Crude interface for sending non-text mail SYNOPSIS
metasend [-b] [-c cc] [-F from] [-e encoding] [-f filename] [-m MIME-type] [-s subject] [-S splitsize] [-t to] [-z] [-n] [-D content- description] [-o outputfile] [-/ multipart-subtype] [-E] [-P preamble-file] DESCRIPTION
The metasend program will allow a user to send one or more pre-existing data file as non-text multimedia mail. With no arguments, the program will ask the user for the To, Subject, and CC fields. It will then ask for the name of a MIME content-type. Next, it will ask the user for the name of an existing file containing that type of data. After this, it will ask what encoding type, if any, should be applied to this data. Finally, it will ask if the user wants to include information from an additional file, in which case the last three questions will be repeated for the next file. Alternately, all of this information can be provided on the comand line, using the following options: -b -- specifies Batch (non-interactive) Mode. Will exit with an error message if all additional needed information is not provided on the command line. -c cc -- specifies the CC address -D description -- specifies a string to be used as the Content-description value -e encoding -- specifies the encoding type. Must be either "base64", "quoted-printable", "7bit", or "x-uue". "7bit" means no encoding is performed. -E -- specifies that the file being included is already a full MIME entity, and does not need to have any Content-* or other header fields added. -f filename -- specifies the file containing the data -F from -- specifies the From address -i "<content-id> -- specifies the content-id value for the MIME entity. Must be a legal content-id value, enclosed in angle brackets. -I "<content-id>" -- specifies the content-id for the multipart entity being created by metasend, if any. Must be a legal content- id value, enclosed in angle brackets. -m MIME-type -- specifies the MIME content-type -n -- specifies that an additional file is to be included. Before each use of the -n option on the command line, the options -m, -c, and -f, at a minimum, must have appeared,and must appear separately for each included file. -o outputfile -- specifies that the output from metasend should go to a named file rather than be delivered as mail. -P preamblefile -- specifies a file containing alternative text to be put in the "preamble" area of a MIME multipart message. -s subject -- specifies the Subject field -S splitsize -- specifies the maximum size before splitting into parts via splitmail(1). -t to -- specifies the To address -z -- specifies that the temporary files should be deleted EVEN IF DELIVERY FAILS. -/ subtype -- specifies the use of a MIME multipart subtype other than "mixed". This is intended largely for mail hackers. A much friendlier interface to non-text mail is provided by mailto(1). If more than one file is given, the parts will be combined into a single multipart MIME object. The mail will be delivered using the splitmail(1) program, so if it is very long it will arrive as several pieces which can be automati- cally reassembled by metamail. The definition of "very long" can be altered using the -S flag or the SPLITSIZE environment variable, as described in the splitmail(1) man page. SEE ALSO
audiosend(1), mailto-hebrew(1), mailto(1), metamail(1), mmencode(1), splitmail(1) BUGS
Should do a better job of choosing the encoding if you don't specify one. Should do MIME syntax checking on user-supplied content-type fields. Users are all too likely to provide bogus MIME content-type values, alas. In particular, there are various characters that are not allowed in parameters unless the parameters are enclosed in double quotes, but this sort of restriction is hard to enforce in a shell script! COPYRIGHT
Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore) Permission to use, copy, modify, and distribute this material for any purpose and without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies, and that the name of Bellcore not be used in advertising or publicity pertaining to this material without the specific, prior written permission of an authorized representative of Bellcore. BELLCORE MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY OF THIS MATERIAL FOR ANY PURPOSE. IT IS PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. AUTHOR
Nathaniel S. Borenstein, Bellcore Release 1 metasend(1)