01-03-2006
You can use mailx (which uses the Sendmail executable) command:
mailx -s "Subject Line" user@somewhere < /name/of/text_file
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
This is my first thread.
Iam trying the following:
OS: Sun
Database: DB2, Informix, Oracle
* Get the status of the database (using database command line options)
* pipe to a text file
* send mail of the text file to receiptents.
TODO1:
First step i tried to send a test message.... (3 Replies)
Discussion started by: kenkanya
3 Replies
2. UNIX for Dummies Questions & Answers
Hello,
i am sending email with following command.
The problem is the attachment is displayed as inline text instead of a file attached to email. What should i do?
I don't have chance to install new binaries to the server (SunOS)
( \
echo From: Sender ; \
echo Subject: Testing ; \... (1 Reply)
Discussion started by: yakari
1 Replies
3. Shell Programming and Scripting
Hi All,,
After long time,
might be this is nth time post on this forum for the same query...but i tried browsing for sometime and i did not get what i wanted :)
i have following syntax in my shell scripting..
(cat filename.txt
uuencode attachment attachment)|/usr/lib/sendmail -t... (4 Replies)
Discussion started by: Shahul
4 Replies
4. UNIX for Advanced & Expert Users
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
5. Shell Programming and Scripting
dear all
I have below function which send an email, but if I need to add an attachement it won't work instead it write some jibberish to body of the email
begin 644 SIGN_OFF_AP_20120626.csv
M4TE'3E]/1D9?4TA%150L351-7T1!5$4L0D]/2RQ35$%455,L5D%25%E012Q#
%3U5.5`H`
`
end
function... (6 Replies)
Discussion started by: manas_ranjan
6 Replies
6. Shell Programming and Scripting
Hi,
I am trying to send log file of a job run in unix machince through sendmail.Though I am able to send the text but it is not sending as attachment.
Could you please look into the code and let me know where I have gone wrong
fdate=`date %Y%j`... (2 Replies)
Discussion started by: Rossdba
2 Replies
7. Shell Programming and Scripting
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
8. Shell Programming and Scripting
Hello people,
I only have sendmail and uuencode on a Oracle (RH) linux server.
While:
/usr/bin/uuencode awr.html awr.html | /usr/sbin/sendmail myemail@company.com
Is working fine,
the ideal for me is to do something like:
echo "To: me@company.com" > /home/vasilis/msg.txt
echo "Subject: DB... (3 Replies)
Discussion started by: drbiloukos
3 Replies
9. Shell Programming and Scripting
Hi Folks
I have below code, which is able to successfully send the content of the output file as html which is body, but i did tried uuencode & mailx -a for sending attachments but to no avail.
cat - ${Output_File} <<EOF| /usr/sbin/sendmail -oi -t
#From: ${MAILFROM}
To: ${MAILTO}
Subject:... (5 Replies)
Discussion started by: nikhil jain
5 Replies
LEARN ABOUT OSF1
mailstats
mailstats(8) System Manager's Manual mailstats(8)
NAME
mailstats - Displays statistics about mail traffic
SYNOPSIS
mailstats [-o] [-C cffile [-f stfile]
FLAGS
Do not display the name of the mailer in the output. Use cffile as the name of the sendmail "cf" file instead of /var/adm/sendmail/send-
mail.cf. Use stfile as the input statistics file instead of /var/adm/sendmail/sendmail.st.
DESCRIPTION
The mailstats command reads the information in the /var/adm/sendmail/sendmail.st file (or in the file specified with the -f flag), formats
it, and writes it to standard output. Note also that you can change the location of the sendmail.st file by editing its pathname in the
sendmail.cf file.
EXAMPLES
The format of the information is shown in the following example, in which the first field (M) contains a number that indicates the position
of that mailer in the sendmail.cf file, starting at 0 (zero). For example, the first mailer in the sendmail.cf file corresponds to the
number 0 in the mailstats display, the second mailer corresponds to the number 1, and so on. Statistics from Thu Feb 17 11:20:01 2000 M
msgsfr bytes_from msgsto bytes_to msgsrej msgsdis Mailer 1 50 77K 1 3K 0 0 local 6
43 59K 58 99K 0 0 smtp ============================================================ T 93
136K 59 102K 0 0 The fields in the report have the following meanings: Indicates the position of the mailer in
the sendmail.cf file. Indicates the number of messages received by the local machine from the indicated mailer. Indicates the number of
bytes in the messages received by the local machine from the indicated mailer. Indicates the number of messages sent from the local
machine using the indicated mailer. Indicates the number of bytes in the messages sent from the local machine using the indicated mailer.
Indicates the number of rejected messages. Indicates the number of discarded messages. Indicates the name of the mailer.
If sendmail transmits mail directly to a file, such as the dead.letter file or an alias target, the message and byte counts are credited to
the prog mailer, as defined in the sendmail.cf file. However, mailstats will still default to var/adm/sendmail/sendmail.st.
FILES
Specifies the command path Contains system statistics Contains configuration information for sendmail
RELATED INFORMATION
Commands: sendmail(8) delim off
mailstats(8)