Have you tried this variation (some licence taken on the output format):
The only real difference is that the email body should appear before the attachments.
Ps. It always helps to know what the final output should look like.
Last edited by methyl; 08-22-2012 at 10:33 PM..
Reason: typos;layout
From a program, I want to execute a UNIX elm command that will send multiple txt attachment files to an email address. I can do it for one attachment only ie. "elm -s"subject" emailaddress < attachment.txt"
1. The attachment is received in the body of the email and not as an attachment.
2. The... (1 Reply)
hi,
i'm pretty new to this unix. i've been asked to create a shell script which will pick up the email id from a text file(stored in same machine, same directory) searches for that id in another file in which a product name( a one line text) is mentioned against it. then it should send a mail... (0 Replies)
Hi,
I am seeing some junk characters when I attach the second file, given below is the logic I used. Please help me resolving the issue.
( uuencode file1.txt file1.txt.lst && uuencode file2.txt file2.txt.lst ) > attachment.txt
cat body.txt attachment.txt > combinemail.txt
mailx -m... (7 Replies)
Hello ,
I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them .
I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
I have a html file:
# cat sample.html
<html>
<body>
Sample HTML file</p>
</body>
</html>
And I have two excel sheets (sheet1.xls & sheet2.xls)
I want to send an email by having the sample.html as the message body and two spreadsheets as the attachments.
I tried using the below command:... (12 Replies)
Dear Members,
I am trying to send a file as an attachment from the command prompt in Linux.
I am using the following:
(echo "Find attached Exception Report"; uuencode $DATA_TOP/out/data/$err_rpt_file $err_rpt_file)|/bin/mailx -s "***Exceptions Found" davidk@xyz.com Here err_rpt_file... (2 Replies)
We don't have uuencode installed in our machines..... Please tell me how to send mail with multiple attachments ??? URGENT !!!!!
Please tell me using command line (or) scripts..........
please......
Thanks in Advance.... (1 Reply)
Hi,
i try to send two (multiple) files by the mail-console-command
mail -s TEST -a f1.pdf f2.pdf n.ame@ms123.de
but it doesn't work. can someone give me a hint?
Thanks in advance,
IMPe (2 Replies)
HP-UX mbhp7640 B.11.31 U ia64 4294967295 unlimited-user license
Our database builds a MIME compliant html email, then cats that to sendmail - no problem.
Due to horrible issues with the native uuencode, we long ago began using uuenview to encode our attachments - no problem. An example is... (1 Reply)
Discussion started by: bubba77
1 Replies
LEARN ABOUT DEBIAN
rt::client::rest::attachment
RT::Client::REST::Attachment(3pm) User Contributed Perl Documentation RT::Client::REST::Attachment(3pm)NAME
RT::Client::REST::Attachment -- this object represents an attachment.
SYNOPSIS
my $attachments = $ticket->attachments;
my $count = $attachments->count;
print "There are $count attachments.
";
my $iterator = $attachments->get_iterator;
while (my $att = &$iterator) {
print "Id: ", $att->id, "; Subject: ", $att->subject, "
";
}
DESCRIPTION
An attachment is a second-class citizen, as it does not exist (at least from the current REST protocol implementation) by itself. At the
moment, it is always associated with a ticket (see parent_id attribute). Thus, you will rarely retrieve an attachment by itself; instead,
you should use "attachments()" method of RT::Client::REST::Ticket object to get an iterator for all attachments for that ticket.
ATTRIBUTES
id
Numeric ID of the attachment.
creator_id
Numeric ID of the user who created the attachment.
parent_id
Numeric ID of the object the attachment is associated with. This is not a proper attribute of the attachment as specified by REST -- it
is simply to store the ID of the RT::Client::REST::Ticket object this attachment belongs to.
subject
Subject of the attachment.
content_type
Content type.
file_name
File name (if any).
transaction_id
Numeric ID of the RT::Client::REST::Transaction object this attachment is associated with.
message_id
Message ID.
created
Time when the attachment was created
content
Actual content of the attachment.
headers
Headers (not parsed), if any.
parent
Parent (not sure what this is yet).
content_encoding
Content encoding, if any.
METHODS
RT::Client::REST::Attachment is a read-only object, so you cannot "store()" it. Also, because it is a second-class citizen, you cannot
"search()" or "count()" it -- use "attachments()" method provided by RT::Client::REST::Ticket.
retrieve
To retrieve an attachment, attributes id and parent_id must be set.
INTERNAL METHODS
rt_type
Returns 'attachment'.
SEE ALSO
RT::Client::REST::Ticket, RT::Client::REST::SearchResult.
AUTHOR
Dmitri Tikhonov <dtikhonov@yahoo.com>
LICENSE
Perl license with the exception of RT::Client::REST, which is GPLed.
perl v5.14.2 2011-12-27 RT::Client::REST::Attachment(3pm)