10 More Discussions You Might Find Interesting
1. Red Hat
Hello experts!!
I am trying to send an email with message body and attachment.but i am getting any one like message body or attachment.
I tried below command:
(echo "subject:test";echo "MIME-Version: 1.0";echo "content-transfer-encoding:base 64";echo "content-type:txt;name=test.txt";cat... (2 Replies)
Discussion started by: Devipriya Ch
2 Replies
2. Shell Programming and Scripting
I am making use of the following code to display the results of my txt file in an email:
mail -s 'Count Validation Test Comparison Results' Ronit@XYZ.com < Count_Validation_Results_`date +%m%d%Y`.txt
Email Output:
----------Query 1 Count Validation Results--------
Source count is 4
Target... (7 Replies)
Discussion started by: ronitreddy
7 Replies
3. Shell Programming and Scripting
Hi guys . I am trying to take the output of top command and mail it to myself . The code is :
echo ##############################################################
/usr/local/bin/top c n 1 b >> /export/home/top-output.txt
echo ##############################################################
... (6 Replies)
Discussion started by: Junaid Subhani
6 Replies
4. Shell Programming and Scripting
i have to attach the 'body in the email' along with attachment below code is throwing errors, how can i do it ?
here body file contains message, it should display in email, please help
i am using HP-UX
(cat body ;) (uuencode attch1 attch1 ;) | mailx -m -s "testing" "abc@gmail.com"
... (4 Replies)
Discussion started by: only4satish
4 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Is there a way to suppress this message?
Null message body; hope that's ok
My email string is:
mailx -s "This is my subject" myemail@domain.com < /dev/null
It's just an annoyance to me that I would like see go away. (3 Replies)
Discussion started by: bbbngowc
3 Replies
6. Shell Programming and Scripting
Hi all,
i am working with CSH, i want to know that
how to send a mail in UNIX shell script (CSH) with attachment as well as message body.
i know that how to send a mail with attachment and message body. but i want know both things in a single mail
Suggession would be appreciate.
... (1 Reply)
Discussion started by: psiva_arul
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. Shell Programming and Scripting
I've got the following code
sub mail_report {
$Mailer = '/usr/sbin/sendmail joe@somewhere.net';
open MAIL,"|$Mailer";
print MAIL "Subject: $X connection attempt \n";
open MESSAGE, "<$outdir$X";
print MESSAGE '$outdir$X\n';
close MESSAGE;
close MAIL;
} #End... (2 Replies)
Discussion started by: thumper
2 Replies
9. UNIX for Dummies Questions & Answers
I'm trying to script sending an e-mail message on an AIX 5.x server with the following requirements:
1. command line switch to specify file name containing message body in HTML format
2. command line switch to specify file name of a binary attachment
3. command line or input file to specify... (4 Replies)
Discussion started by: G-Man
4 Replies
10. UNIX for Dummies Questions & Answers
when sending the contents of a ascii file to the body of an email then sending it off. it seems sendmail is breaking up the lines with a "!" thus ruining the data. Has this ever happened to anyone?
i am guessing there is a line buffer limit in either the mail command or in sendmail itself.
... (3 Replies)
Discussion started by: Optimus_P
3 Replies