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


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

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 10-31-2011
Registered User
 
Join Date: Oct 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
sendmail long text

This is regarding sendmail.

Code:
cat test.msg | sendmail -t

In test msg I have the following.

Code:
To: test@mymail.com
Subject: Test
Long text beings ...

Now when I receive the email in Outlook I get an "!" inserted usually at position 990 and repeated mostly after every 990 chars or 65 chars.
Using Linux on Redhat; on Solaris using mailx this was fine. Using sendmail in order to send html content emails. "!" occurs irrespective of html or text content.
Any ideas,
Thanks


Moderator's Comments:
Video tutorial on how to use code tags in The UNIX and Linux Forums.

Last edited by Franklin52; 10-31-2011 at 05:31 AM.. Reason: Please use code tags for data and code samples, thank you
Sponsored Links
    #2  
Old 10-31-2011
ygemici ygemici is offline Forum Advisor  
sed_shell@LNU
 
Join Date: Feb 2010
Location: istanbul
Posts: 1,629
Thanks: 1
Thanked 279 Times in 272 Posts
Quote:
Originally Posted by roadway View Post
This is regarding sendmail.

Code:
cat test.msg | sendmail -t

In test msg I have the following.

Code:
To: test@mymail.com
Subject: Test
Long text beings ...

Now when I receive the email in Outlook I get an "!" inserted usually at position 990 and repeated mostly after every 990 chars or 65 chars.
Using Linux on Redhat; on Solaris using mailx this was fine. Using sendmail in order to send html content emails. "!" occurs irrespective of html or text content.
Any ideas,
Thanks


Moderator's Comments:
Video tutorial on how to use code tags in The UNIX and Linux Forums.
does this case different?

Code:
# sendmail -t<test.msg

Sponsored Links
    #3  
Old 10-31-2011
Registered User
 
Join Date: Oct 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Found that sendmail has a limit for allowed text length; it will insert an exclamation mark if no linebreak has been encountered. To fix need to insert a linebreak.
google search: sendmail exclamation mark
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Sendmail - Disable text wrap subramanian2008 UNIX for Dummies Questions & Answers 1 10-10-2011 07:52 AM
Attaching file and sending text in body using sendmail command!! sparan_peddu Shell Programming and Scripting 1 03-24-2008 04:01 PM
How do I strip and add tabbed fields to a long text file? saint65 Shell Programming and Scripting 3 02-21-2007 01:18 AM
Find/Change long text aungomarin Shell Programming and Scripting 1 07-10-2006 05:45 AM



All times are GMT -4. The time now is 12:37 PM.