06-26-2006
Thanks a lot bobby it works fine for csv :)
Thanks a lot bobby it works fine for csv
i changed it to csv and it works fine . but for txt same problem
any way my problem is resolved thanks a lot
Regards
Rajesh
10 More Discussions You Might Find Interesting
1. How do I send email?
How do I send a file as an attachment on a Unix system (9 Replies)
Discussion started by: SmartJuniorUnix
9 Replies
2. UNIX for Dummies Questions & Answers
How do I send a file as an attachment on a Unix system (9 Replies)
Discussion started by: SmartJuniorUnix
9 Replies
3. UNIX for Advanced & Expert Users
Hi,
I need to send a mail attachment from the UNIX commandline. I'm using Tru64 and the mail client thats supposed receive the attached file (an excel sheet) is Lotus Notes.
Can anybody help me out? (6 Replies)
Discussion started by: Abhishek Ghose
6 Replies
4. Shell Programming and Scripting
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
5. Shell Programming and Scripting
Hi,
I have used the following command to send a text file "archiver.log" as attachment.
(cat mail.log; uuencode archiver.log archiver.log; ) | mailx -s "Failure" asd@a.com :
But in the mail i am not getting new lines in the text file.New Lines are getting replaced with some weird... (2 Replies)
Discussion started by: radhika03
2 Replies
6. Shell Programming and Scripting
Hi people, I am new to this forums. I have a quick question I hope one of you could help me with. I am writing a script to send attachments via email. However I am having trouble when trying to send multiple attachments. Here is the code I am using:
send_mail()
{
uuencode $TMP $TMP1 > $TMP1... (1 Reply)
Discussion started by: deo2k8
1 Replies
7. AIX
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
8. UNIX for Dummies Questions & Answers
Hello,
I've search the forum, but I cannot find an answer to my specific question. I'm trying to send some files to my professor. Upon his request, I used the following:
tar -cvf vh.tar vh_part1.c vh_part2.c vh_part3.c vh_part4.c vh_sample_run15.txt uuencode vh.tar vh.tar > proj1 mail... (2 Replies)
Discussion started by: venush
2 Replies
9. Shell Programming and Scripting
I have created a shell scripts and wanted to email users multiple attachments using mailx. I noticed that when I do a man on mailx I see and -a option for attachments. When I run a:
mailx -s "test attachments" -a include_file -a exclude_file testuser@mydomain.com
(Interrupt -- one more to... (1 Reply)
Discussion started by: metallica1973
1 Replies
10. UNIX for Dummies Questions & Answers
OS Linux....Just curious as to why this is not working...
uuencode test.txt "test.xls"|mailx -r xxx@server.com -s "validation report" emailrecipient1,emailrecipient2
Please help....Any other options do we need to use?? (3 Replies)
Discussion started by: saggiboy10
3 Replies
LEARN ABOUT DEBIAN
mail::mboxparser::mail::convertable
MboxParser::Mail::Convertable(3pm) User Contributed Perl Documentation MboxParser::Mail::Convertable(3pm)
NAME
Mail::MboxParser::Mail::Convertable - convert mail for sending etc.
SYNOPSIS
use Mail::MboxParser;
[...]
# $msg is a Mail::MboxParser::Mail-object
my $mail = $msg->make_convertable;
$mail->delete_from_header('date', 'message-id');
$mail->replace_in_header('to', 'john.doe@foobar.com');
$mail->add_to_header( ['cc', 'john.does.brother@foobar.com'],
where => 'BEHIND' );
$mail->send('sendmail');
DESCRIPTION
This class adds means to convert an email object into something that could be send via SMTP, NNTP or dumped to a file or filehandle.
Therefore, methods are provided that change the structure of an email which includes adding and removing of header-fields, MIME-parts etc
and transforming them into objects of related modules.
Currently, only basic manipulation of the header and sending using Mail::Mailer is provided. More is to come soon.
This class works non-destructive. You first create a Convertable-object and do any modifications on this while the Mail-object from which
it was derived will not be touched.
METHODS
delete_from_header(header-fields)
Given a list of header-field names, these fields will be removed from the header. If you want to re-send a message, you could for
instance remove the cc-field cause otherwise the message would be carbon-copied to the addresses listed in the cc-field.
add_to_header(array-ref)
add_to_header(array-ref, where => 'BEFORE' | 'BEHIND')
add_to_header() takes a reference to a two-element list whose first element specifies the header-field to add or to add to while the
second elements specifies the data that should be added. 'where' specifies whether to add at the beginning or at the end of the header.
Defaults to 'BEHIND' if not given.
replace_in_header(header-field, new_data)
First element must be the header-field to be replaced while the second argument must be a string indicating what will be the new
content of the header-field.
send(command, args)
Literally inherited from Mail::Internet. Commands can be "mail" (using the UNIX-mail program), "sendmail" (using a configured sendmail
or compatible MTA like exim), "smtp" (for using Net::SMTP) and "test" which will only display what would be sent using /bin/echo.
Additional arguments will be passed on to Mail::Mailer->new() which is in fact what Mail::Internet->send() uses.
For more details, see Mail::Mailer
VERSION
This is version 0.55.
AUTHOR AND COPYRIGHT
Tassilo von Parseval <tassilo.von.parseval@rwth-aachen.de>
Copyright (c) 2001-2005 Tassilo von Parseval. This program is free software; you can redistribute it and/or modify it under the same
terms as Perl itself.
SEE ALSO
Mail::Internet, Mail::Mailer
perl v5.12.3 2005-12-08 MboxParser::Mail::Convertable(3pm)