11-07-2016
As was stated repeatedly in your previous thread, cat, mail, mailx, and sendmail do not ignore <newline> characters.
If the people to whom you are sending mail are using mail readers that assumes that all text is HTML, that might be what is changing your <newline>s to <space>s. But I have never seen anything that does what you say is happening.
Unless you have replaced the cat, mail or mailx, and sendmail utilities that were loaded when you installed your BSD, Linux, or UNIX operating system and associated utilities; we all know that none of those utilities is ignoring <newline> characters. Any thread that you start that says otherwise is wasting our time.
These 4 Users Gave Thanks to Don Cragun For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Everybody,
I need some help on formatting the files coming into unix box on the fly.
I get a file some thing like this in a single line.
ISA^M00^M ^M00^M ^M14^M006929681900 ^M01^M095449419 ... (5 Replies)
Discussion started by: ntekupal
5 Replies
2. UNIX for Advanced & Expert Users
Hi ,
I am using mailx command for sending the mails. Rightnow I am sending the attachment (by using uuencode $filename) as a seperate mail.I wanna send the attachment also with the same mail. (6 Replies)
Discussion started by: sharif
6 Replies
3. Shell Programming and Scripting
Hi,
I am using mailx command to send a mail with attachment. It's working fine, but with attachment I am getting one extra attachment like (ATT00131.txt). I have tried to use unix2dos command also. But still I am getting the extra attachment.
I am using the following code:
subject="temp... (5 Replies)
Discussion started by: viswanatharv
5 Replies
4. Shell Programming and Scripting
I have a perl program that uses the mail program to send emails. It works fine but because I want to change the return address on the emails to be different I need to use mailx with the "-r" option. the problem is when I change this line to use mailx I no longer recieve "any" emails.
This works... (1 Reply)
Discussion started by: kieranfoley
1 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
I have raw data in the format :-
--------------------------------------------------------------------
NUT070
3 ./opc.sh SQLSCRIPT &SID sysdate.sql 20120105
NUW004
3 ./opc.sh SQLSCRIPT &SID sab_supp.sql
UNUW032
3 ./opc.sh SQLSCRIPT &SID sab_unsupp.sql... (3 Replies)
Discussion started by: subhotech
3 Replies
6. UNIX for Dummies Questions & Answers
I tried to send email through mailx, the text file is well formatted when i open in unix, but when received the mail in outlook, the column do not align with the heading. The text file contain the tablespace details which I spool out from database.
Please advise. Do I need to specify any parameter... (4 Replies)
Discussion started by: fenocean
4 Replies
7. Red Hat
Whats the difference between mail and mailx?
I'm trying to troubleshoot a problem where I can send mail from server A with this `echo $MESSAGE | mail -s "$SUBJECT" -r $FROM $RECIPIENTS` command but executing the same command from server B throws me this error (Both servers are RHEL)
... (1 Reply)
Discussion started by: RedSpyder
1 Replies
8. UNIX for Dummies Questions & Answers
I am having trouble getting mailx to send multiple Bcc mails out without everyone in the list of recipients seeing everyone else's email addresses. I looked at the man pages of my system and seem to be following the syntax correctly, but the mails still go out as if I were just putting in a list of... (7 Replies)
Discussion started by: legrandtimonier
7 Replies
9. Shell Programming and Scripting
Hello all,
I am trying to send an email using mailx command.
I have a txt file which has formatting like:
root@machine# cat /export/home/test/summary.txt
T A P O U T - R A T I N G - A U D I T - S U M M A R Y - R E P O... (2 Replies)
Discussion started by: Junaid Subhani
2 Replies
10. Shell Programming and Scripting
Hi,
I have a shell script which automates reporting and at times, requires the report line to be very long (sometimes as long as 2131 chars). The output I get is similar to this:
XXXX XXXXXXX 16:15 3.24% 5.07% 3.69% 5.23% 3.68% 4.06% 3.57% 5.03% 4.31% 5.11% 3.49% 4.19% 4.31% ... (2 Replies)
Discussion started by: gilberteu
2 Replies
LEARN ABOUT CENTOS
mailstats
MAILSTATS(8) System Manager's Manual MAILSTATS(8)
NAME
mailstats - display mail statistics
SYNOPSIS
mailstats [-c] [-o] [-p] [-P] [-C cffile] [-f stfile]
DESCRIPTION
The mailstats utility displays the current mail statistics.
First, the time at which statistics started being kept is displayed, in the format specified by ctime(3). Then, the statistics for each
mailer are displayed on a single line, each with the following white space separated fields:
M The mailer number.
msgsfr Number of messages from the mailer.
bytes_from Kbytes from the mailer.
msgsto Number of messages to the mailer.
bytes_to Kbytes to the mailer.
msgsrej Number of messages rejected.
msgsdis Number of messages discarded.
msgsqur Number of messages quarantined.
Mailer The name of the mailer.
After this display, a line totaling the values for all of the mailers is displayed (preceded with a ``T''), separated from the previous
information by a line containing only equals (``='') characters. Another line preceded with a ``C'' lists the number of TCP connections.
The options are as follows:
-C Read the specified file instead of the default sendmail configuration file.
-c Try to use submit.cf instead of the default sendmail configuration file.
-f Read the specified statistics file instead of the statistics file specified in the sendmail configuration file.
-P Output information in program-readable mode without clearing statistics.
-p Output information in program-readable mode and clear statistics.
-o Don't display the name of the mailer in the output.
The mailstats utility exits 0 on success, and >0 if an error occurs.
FILES
/etc/mail/sendmail.cf The default sendmail configuration file.
/var/log/mail/statistics The default sendmail statistics file.
SEE ALSO
mailq(1), sendmail(8)
$Date: 2002/06/27 22:47:29 $ MAILSTATS(8)