04-26-2005
Excelent:-)
I try it ok in FreeBSD:-)
1.)/usr/bin/echo "Email text\nNew line\nAnother new line" >x
2.) uuencode sourcefile.txt sourcefile.txt | cat x - | mailx -s "Email subject" "recipient@company.com"
Thanks a lot;
Before you post,I can do only post content or post attechment with command line;can't bind them :-(
cat content.txt | mailx -s "Email subject" "recipient@company.com"
or
cat attechment.tar.gz | uuencode attechmetn.tar.gz | mailx -s "Email subject"
"recipient@company.com"
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi, I am trying to include a message along with an attachment with an email using mailx on AIX.
uuencode Test.dat Test.dat| mailx -s 'Testing' mymail@yahoo.com < MESGFILE
This only gives me the contents of MESGFILE as my message.
If I remove the < FILE I recieve the attachment.
What... (4 Replies)
Discussion started by: edog
4 Replies
2. Shell Programming and Scripting
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
3. Shell Programming and Scripting
Hi All,
I am trying to send a mail with an attachment and message. Following command I am using.
(cat <messagefile> ; uuencode <attachmentfile> <attachmentfile>)|mailx -s"Subject" dave@email.com
In the received mail, message body is appearing fine. But attachment is not coming. Rather... (2 Replies)
Discussion started by: nihar.dutta
2 Replies
4. Shell Programming and Scripting
Hi
I want to sent attachment file which is 400mb size.(single file, not tar file)
is there any way that these kind of large files can be divided into small sizes and sent as attachments
thanks with anticipation (3 Replies)
Discussion started by: karthikn7974
3 Replies
5. Shell Programming and Scripting
As a part of requirement I need to send out mails with attachment from UNIX. I have to take query the Oracle DB and send the result of the query in an attachment through mail.
I use the following script for the same.
#!/bin/csh
#!/bin/bash
#!/bin/ksh
ATTFILE=/folder1/test.xls
cd... (1 Reply)
Discussion started by: Sgiri1
1 Replies
6. Shell Programming and Scripting
Hi,
I want to send an email with multiple attachment using uuencode and mail command.
I am able to send with one attachment
Ex:uuencode abc.txt abc.txt | mail test@test.com -s "Test3"
Can anyone reply with syntax.
Regards
BS (3 Replies)
Discussion started by: balajiora
3 Replies
7. Shell Programming and Scripting
Hi,
We have been trying to send mail with attachment and it is going fine, but when we try to attach a text to the body of the email, we find that the mail is going fine with the body text but the attachment is not going through. We are using ksh.
The command that is successfull without the... (6 Replies)
Discussion started by: jmathew99
6 Replies
8. Shell Programming and Scripting
Hi,
Please help me in sending an e-mail with attachment through unix
mailx command is not present in our unix box. (4 Replies)
Discussion started by: dudd9
4 Replies
9. Shell Programming and Scripting
Hi,
I am trying to send email with attachment using mailx command. I am using the folowing command:
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... (5 Replies)
Discussion started by: asp_julius
5 Replies
10. UNIX for Beginners Questions & Answers
Hello, I am new to the Unix thing, and I am having trouble sending attachments via shell client putty through mailx.
The command I use is
$ mailx -s "Subject" user@blah.com < attachment.txt
but everytime I do that it would say Cannot open attachment.txt
I have the file save to my computer... (5 Replies)
Discussion started by: mrobin20
5 Replies
LEARN ABOUT DEBIAN
email::mime::contenttype
Email::MIME::ContentType(3pm) User Contributed Perl Documentation Email::MIME::ContentType(3pm)
NAME
Email::MIME::ContentType - Parse a MIME Content-Type Header
VERSION
version 1.013
$Id: /my/pep/Email-MIME-ContentType/trunk/lib/Email/MIME/ContentType.pm 31133 2007-03-22T19:52:26.296283Z rjbs $
SYNOPSIS
use Email::MIME::ContentType;
# Content-Type: text/plain; charset="us-ascii"; format=flowed
my $ct = 'text/plain; charset="us-ascii"; format=flowed';
my $data = parse_content_type($ct);
$data = {
discrete => "text",
composite => "plain",
attributes => {
charset => "us-ascii",
format => "flowed"
}
};
FUNCTIONS
parse_content_type
This routine is exported by default.
This routine parses email content type headers according to section 5.1 of RFC 2045. It returns a hash as above, with entries for the dis-
crete type, the composite type, and a hash of attributes.
WARNINGS
This is not a valid content-type header, according to both RFC 1521 and RFC 2045:
Content-Type: type/subtype;
If a semicolon appears, a parameter must. "parse_content_type" will carp if it encounters a header of this type, but you can suppress this
by setting $Email::MIME::ContentType::STRICT_PARAMS to a false value. Please consider localizing this assignment!
PERL EMAIL PROJECT
This module is maintained by the Perl Email Project.
<http://emailproject.perl.org/wiki/Email::MIME::ContentType>
AUTHOR
Casey West, "casey@geeknest.com" Simon Cozens, "simon@cpan.org"
SEE ALSO
Email::MIME
perl v5.8.8 2008-03-01 Email::MIME::ContentType(3pm)