Body content is in random format while sending email from Linux to my outlook.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Body content is in random format while sending email from Linux to my outlook.
# 1  
Old 10-27-2014
Body content is in random format while sending email from Linux to my outlook.

Hi

I have a script running in lunix machine which emails log file content to my outlook.

Here is the actual log file result:

Image-1

Code:
 In-Master:25028
ReplicaDn            Consumer                        Supplier               Delay
dc=xxx,dc=com     lmjker0110:12345          lmjker0110.johny.com:25023        0
      =           lmjker0110:12345          lmjker0110.johny.com:25023        0
      =           hjghfg0221:25022          lmjker0110.johny.com:25023        0


Code:
Image-2:
 
In-Master:25028
ReplicaDn      Consumer                   Supplier                   Delay      
dc=xxxx,dc=com keredf0220:25024           keredf0220.merck.com:25023 0         
      =       keredf0220:25026           keredf0220.merck.com:250230         
      =       hjghfg0221:25023           keredf0220.merck.com:250230         
      =       hjghfg0221:25024           keredf0220.merck.com:250230

How to get format good like image-1?

Last edited by Corona688; 10-27-2014 at 07:39 PM..
# 2  
Old 10-27-2014
Outlook is infamous for not just reformatting logs, but absolutely all email however it pleases, to the point of exchanging newlines for spaces when it decides they didn't "really" mean to hit enter there. You could send the logs as a .txt attachment and expect it to open in Notepad. Some people have had some luck sending HTML emails like
Code:
<html><body><pre>(preformatted text)</pre></body></html>

# 3  
Old 10-27-2014
Hi

I dont want to send email via attachment. Can you help me
# 4  
Old 10-27-2014
I ran into this before. I am not sure, but I think there was an option somewhere, like tools, options, email options and then something like show or read all standard email like plain text.
# 5  
Old 10-28-2014
Quote:
Originally Posted by buzzme
Hi

I dont want to send email via attachment. Can you help me
I made another suggestion too. What about it?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

UNIX script email to outlook report format

I have a ksh script that emails a report to outlook from a Unix Solaris. On server the report formatted perfectly. However, the email version the format is not. On the server report looks like this: TN Region Old SPiAD Server Order/Req Local Status NAAC Status Request Date New... (1 Reply)
Discussion started by: mrn6430
1 Replies

2. Red Hat

Sending email with message body and attachment

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

3. Shell Programming and Scripting

Sending sql output to email body with conditional subject line

hi , i have written below piece of code to meet the requirement but i am stuck in the logic here. the requirement are: 1) to send the sql out put to email body with proper formatting. 2) if count_matching = Yes then mail should triggered with the subject line ... (10 Replies)
Discussion started by: itzkashi
10 Replies

4. Shell Programming and Scripting

Message Body while sending an email

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

5. Shell Programming and Scripting

Outlook Email Body Format Issue

Hello All, I been trying to get a solution for a while not able to figure out. I am generating a file and sending that as an body of message to my outlook account. For some reason reason everything is showing up as one line in the email. for i in `cat "${GEN_PARAM_LIST3}"` do ... (0 Replies)
Discussion started by: Ariean
0 Replies

6. Shell Programming and Scripting

Sending an email with a body and attachments using uuencode

Hi, Im having a bit of an issue with using the uuencode command and sending out an email. My aim is to send an email out which has a body and also have attachments. Currently I can either get one or the other and not both on the same email. uuencode... (4 Replies)
Discussion started by: 02JayJay02
4 Replies

7. UNIX for Dummies Questions & Answers

Sending email with attachment and body

Hi I want to able to attach a file to a email and send it with a body the body of the email is within the "body" file, and the attachment in "atch" if i send like below it will send the email correctly /usr/sbin/sendmail me@you.com< body And when i send the attachment alone... (3 Replies)
Discussion started by: sridanu
3 Replies

8. Shell Programming and Scripting

Not able to attach text in body of email while sending mail with attachment

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

9. Shell Programming and Scripting

how to send an email with some body content and attachment

hi plz help me in sending a mail with some data in body and an attachment as some txt file. currently i am able to send mail with some body content, i need an example how to send the same along with attachment. thanks in advance -bali (2 Replies)
Discussion started by: balireddy_77
2 Replies

10. UNIX for Dummies Questions & Answers

To send an email with the body content extracted from a file

Hi, I have been trying to shoot an email with the email body to be obtained from a file. Can someone please help me with it.. I have been trying to use the MAILX commad for the same. mailx -s "test email" -r sender@test.com < file.txt but it sends the file as an attachment,while i... (3 Replies)
Discussion started by: rohit.shetty84
3 Replies
Login or Register to Ask a Question