The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem with sending E-Mail Iq_zero UNIX for Dummies Questions & Answers 9 04-28-2008 05:40 AM
Problem sending mail Netghost AIX 0 04-25-2007 07:49 AM
Problem while sending mail with attachements nishant_pathak_ UNIX for Advanced & Expert Users 4 10-26-2006 08:32 PM
I have a problem in sending mail vijaysabari UNIX for Advanced & Expert Users 2 06-02-2005 06:42 AM
I have a problem in sending mail vijaysabari Shell Programming and Scripting 1 06-02-2005 05:13 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-27-2006
Terrible
Guest
 

Posts: n/a
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)
Reply With Quote
Forum Sponsor
  #2  
Old 07-27-2006
Terrible
Guest
 

Posts: n/a
example of the command i'm running


./report | mail -s "Financial Info" engineeringteam@lob.com, researchteam@lob.com, detailteam@lob.com
Reply With Quote
  #3  
Old 07-27-2006
Terrible
Guest
 

Posts: n/a
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?
Reply With Quote
  #4  
Old 07-27-2006
Glenn Arndt's Avatar
Anomalous Lurker
 

Join Date: Feb 2006
Location: Indianapolis, IN
Posts: 255
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.
Reply With Quote
  #5  
Old 07-27-2006
Glenn Arndt's Avatar
Anomalous Lurker
 

Join Date: Feb 2006
Location: Indianapolis, IN
Posts: 255
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 07:56 AM. Reason: Spelling
Reply With Quote
  #6  
Old 07-28-2006
Terrible
Guest
 

Posts: n/a
thanks a million. seems like it worked
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0