Mail Format Issues


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Mail Format Issues
# 1  
Old 12-16-2015
Mail Format Issues

Hi All,

I 'm trying to find a way to send my contents of a file as a body of email in the format shown below. However, the format of the contents are messed up when I receive the email.

Code:
---------------------------------------------------------------------------------------------------------
|BATCH_DT|SI|XXX_COUNT |XXX_BALANCE       |YYY_COUNT |YYY_BALANCE       |DIFF_COUNT |DIFF_BALANCE       |
---------------------------------------------------------------------------------------------------------
|20150731|05|0000000132|000001182401644.77|0000000100|000001000000000.00|+0000000032|+000000182401644.77|
|20150731|09|0000026468|000001189347835.97|0000099999|000009999999999.99|-0000073531|-000008810652164.02|
---------------------------------------------------------------------------------------------------------

Is there anything we could so that the format remains same in the email please? Any help is really appreciated.

Thanks
Shash
# 2  
Old 12-16-2015
That's because of the e-mail-client is using a true type font.
You'll need to either select a monospace font or send an HTML file.
This User Gave Thanks to RudiC For This Post:
# 3  
Old 12-16-2015
Thanks RudiC! I managed to do the formatting using HTML.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Email Format Output issues

Hi Guys, I have written a script, which output information from email notfication. The output works fine in HTML format, but non-html format it is not shown in a human readable format. Can you help with the format *** Script echo " Server Name : $CLIENT_CHECK "... (4 Replies)
Discussion started by: Junes
4 Replies

2. Shell Programming and Scripting

Date format issues

I would like to get the below in YYYY MMDD format, Last date of the week Last date of the month Last date of the year And then compare d_date with the above if it matches it has to send some email. while read email_address; do mail -s "$subject"... (1 Reply)
Discussion started by: Aditya_001
1 Replies

3. Ubuntu

Monitor issues Invalid Format

Hello Folks, Monitor took a crap on me so I bought a new flat screen. Im running Ubuntu 12 recieving an invalid format after the GUI login screen. How do I go about trying to change the resolution. FYI old monitor blew smoke so reconnecting it is not an option. From I understand their is no... (3 Replies)
Discussion started by: Fingerz
3 Replies

4. UNIX for Dummies Questions & Answers

Issues in sending mail with attachements

Hi I am using the below command to send mail from unix with body as well as attachment. But the attachment is in encoded form in the body itself. I am not receiving as attachment: (cat body_success.txt;uuencode Log.txt Log.txt)| mailx -s "success" $ToID I am receiving... (5 Replies)
Discussion started by: pandeesh
5 Replies

5. UNIX for Dummies Questions & Answers

issues in sending mail

Hi, i am trying the below script for sending mail. if then count=`cat $sfile|wc -l` echo "There are $count abends.Please take care " > body.txt (cat body.txt;uuencode $sfile $sfile) | mailx -s "Alert:there are failures" pandeesh@gmail.com fi In the mail, i am getting like: ... (4 Replies)
Discussion started by: pandeesh
4 Replies

6. AIX

/var/spool/mail/ issues

Hi My box is running with AIX 6100-06 and Im the root user of this box My /var gets filled up often to 100% When I investigate I find that it is the below file which increases rapidly /var/spool/mail/pdgadmin I dont know why this file is growing up. Can any one assist me on this.... (2 Replies)
Discussion started by: samsungsamsung
2 Replies

7. UNIX for Dummies Questions & Answers

netscape mail issues

Don't know if this is too in-depth for the ".. Dummies .." forum, but I figured I'd try this one first. I have a file from a client that I need to save to our UNIX server. If the file is sent as an email attachment from UNIX (via command line or Twiggi Mail), the following occurs: if the... (0 Replies)
Discussion started by: jumpinfallout
0 Replies

8. UNIX for Dummies Questions & Answers

mail issues on SCO_SV 5.0.6

I am very new to unix and I am trying to get a Sco Server setup to send outgoing email. I know that SCO uses MMDF and i have configured it to use TCP/IP and UUCP, but I never receive any of the emails I send to my exchange server. I don't have this problem on any of the Linux systems I use. ... (0 Replies)
Discussion started by: chive2
0 Replies
Login or Register to Ask a Question