problem sending mail to outlook


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting problem sending mail to outlook
# 1  
Old 07-27-2006
problem sending mail to outlook

i'm a avid fan of making the output of my scripts look pretty. so as a result i put in my scripts a lot of lines that are formed by either ****** or =======

now, outlook seems to have a problem with that. it always removes something that it calls "line breakers" from the emails my scripts send out thereby causing the output to look ugly in outlook.

now, how do i fix this? what can add to my script to stop outlook from acting like this?

i already unchecked the "remove line breaker" option in outlook. and it worked, but when someone else replies to email containing the scritp output, its back to being garbled. (since that person hasn't unchecked their "remove line breaker" option. i cant expect everyone in the company to do this which is why i need something to fix my script with)
Terrible
# 2  
Old 07-27-2006
example of the command i'm running


./report | mail -s "Financial Info" engineeringteam@lob.com, researchteam@lob.com, detailteam@lob.com
Terrible
# 3  
Old 07-27-2006
Quote:
Originally Posted by Terrible
example of the command i'm running


./report | mail -s "Financial Info" engineeringteam@lob.com, researchteam@lob.com, detailteam@lob.com

any advice on how to edit the above to make the output look better and not get tampered with by outlook?
Terrible
# 4  
Old 07-27-2006
It's an Outlook issue that can't be controlled completely. There's a knowledge base article at http://support.microsoft.com/kb/327573/en-us that might help you minimize the chances of it happening. It may have something to do with the length of the lines in the email, i.e. if you can keep the lines less than 65 bytes long, perhaps it would not remove the "extra" line breaks.

If you really want precise control of the email body, you can try doing inline HTML, but that adds complexity and may introduce other unwanted side effects.

Also, "bumping" posts is contrary to the rules of this forum:

(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post where your goal is to get an answer more quickly.
# 5  
Old 07-27-2006
Update: Apparently there is a workaround to prevent Outlook from automatically removing "extra" line breaks -- add two spaces to the beginning of each line, and still wrap lines at 65 characters. See this web site for more information.

Last edited by Glenn Arndt; 07-27-2006 at 11:56 AM.. Reason: Spelling
# 6  
Old 07-28-2006
thanks a million. seems like it worked
Terrible
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to Troubleshoot the mail sending problem?

I am trying to send a mail through terminal from last week still now I can't able to send it.If there is any resolution Please help me out of this problem.It is very urgent . mail -s "check" upload.xxx@example.com < /root/mail.txt # tail -15 /var/log/maillog Sep 19 16:52:04 edms032... (15 Replies)
Discussion started by: kannansoft1985
15 Replies

2. Shell Programming and Scripting

Problem in sending mail with attachment

Hi Team, I have written the following code snippet to send mail with attachment to recipient. But I am getting mail with attachment. But the file is empty. All the 3 Attachment* size is more than 80KB. Not sure what is wrong in the command. MSG_BODY1="hi" LOG_FILE="a/b/c/log1.log"... (2 Replies)
Discussion started by: kmanivan82
2 Replies

3. Shell Programming and Scripting

Problem in Sending mail as an attachment

Hi, I need to send a email as a txt file and i used the commands, (echo `echo $EMAIL_MSG` ; uuencode "file.txt" "file.txt" ) | mailx -s "$EMAIL_SUBJECT" "$EMAIL_ID" I received email with a attachment with all data but i get all of them in one row. For example: If file.txt contains value... (1 Reply)
Discussion started by: skcvasanth
1 Replies

4. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

5. Debian

Sending mail from outlook to virtual debian

Hello to all! I have a problem and i would really need your help. I have virtual debian on my VMware player with already set postfix and dovecot programs so I can send mail from user to user. Next step is to set outlook express on my physical computer (win xp) to send mail to virtual debian.... (0 Replies)
Discussion started by: Red_Lion
0 Replies

6. UNIX for Advanced & Expert Users

problem in sending mail to a group

I am calling a unix script in oracle to send a mail to outlook group using mailx. The cmd looks like this: mailx -s "AA_BBB_" APPostServices@xyz.com APPostServices@xyz.com isa group but the mail is not sent but when i send mail to another group it works fine. What are the things that i... (1 Reply)
Discussion started by: petervuksich
1 Replies

7. UNIX for Dummies Questions & Answers

Problem with sending E-Mail

Im having trouble with sending a file with attachment. The attach file wasn't sent to to the recepient. We tested this manually and it works but with the script it doesn't work. I'm thinking there is a problem with the script. Here is the code: mailto=`/dir/dir2/dir3/GET_EMAIL_ADDR.sh... (9 Replies)
Discussion started by: Iq_zero
9 Replies

8. AIX

Problem sending mail

Everytime i try sending mails using the command line have a reply form the daemon saying : ? 1 Message 1: From MAILER-DAEMON Wed Apr 25 10:42:36 2007 Date: Wed, 25 Apr 2007 10:42:36 -0500 From: Mail Delivery Subsystem <MAILER-DAEMON> To: malarie MIME-Version: 1.0 Content-Type:... (0 Replies)
Discussion started by: Netghost
0 Replies

9. UNIX for Advanced & Expert Users

I have a problem in sending mail

Hi, I have a problem in sending mail ...... #!/usr/bin/perl -w $file_length = `cat file.txt | wc -l`; if ( $file_length == 0) {} else { `mail -s "Tool" <mymailid> < file.txt`; } Eventhough i have used `uuencode Mailfile$App_Server$line | mail <mymailid>`;... (2 Replies)
Discussion started by: vijaysabari
2 Replies

10. Shell Programming and Scripting

I have a problem in sending mail

Hi, I have a problem in sending mail ...... #!/usr/bin/perl -w $file_length = `cat file.txt | wc -l`; if ( $file_length == 0) {} else { `mail -s "Tool" <mymailid> < file.txt`; } Eventhough i have used `uuencode Mailfile$App_Server$line | mail <mymailid>`;... (1 Reply)
Discussion started by: vijaysabari
1 Replies
Login or Register to Ask a Question