UNIX mail and wrapping


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting UNIX mail and wrapping
# 1  
Old 01-15-2013
UNIX mail and wrapping

Greetings,

I am by no means a Unix expert and hope that someone here can help me out.

I am sending an email from within a Progress character program. This works fine.
My issue is that I would like to send more than 80 characters and the email is wrapping at 80 chars.

Is this an email issue? Or can I send a param on the mail command to allow for more characters?

Here is my Progress command:
Code:
 unix silent "mail -s 'Subject' user@company.com < " value(t-efilename).

The text file represented by t-efilename is 100 characters wide. The email when received wraps everything after 80 chars onto the next line.

Here is the body of the email:
Code:
                          PO DUE DATE CHANGE ALERT
   
  Item   :  105562
   
  Width  :     21.250
  Length :  43500.000
   
  Original Due Date :  01/15/13
  New Due Date      :  01/12/13
  ------------------------------------------------------------------------
  -------------
   
       Job  Scheduled Date/Time      Customer                   Qty
  Ordered   Remaining
   -------  -----------------------  -------------------------
  -----------  ----------
    785324  02/12/2013 07:31:08.000  GC Company
  1,500.00  192,708.33

Any help would be appreciated.

Thanks,

RA

Last edited by Nosredna; 01-15-2013 at 02:51 PM.. Reason: Add
# 2  
Old 01-15-2013
Can you double check if your email client is wrapping texts after 80 chars?

I'm not familiar with progress character program, another option is to convert your file into HTML and specify the line breaks <br> thus avoiding the wrapping issue.
# 3  
Old 01-15-2013
Thanks for the reply.

HTML is an option for sure.

As for the wrapping, the crappy thing is that I am not whitelisted on my clients site (yet) so I cannot use my email address to test the output. I am having the email forwarded to me.......

Very inefficient and time consuming but it's all I have right now. I will ask about the wrapping in email.
# 4  
Old 01-15-2013
If you have access to the unix command line can you try an mail the file without going through progress eg:
Code:
$ mail -s 'Subject' user@company.com < /tmp/your_mail_file

This way we can rule out anything related to the progress character client.
# 5  
Old 01-15-2013
Ran it from the command line. Waiting to hear from my client as to how it looks.

More later.....

---------- Post updated at 03:22 PM ---------- Previous update was at 03:21 PM ----------

Looks exactly the same.
# 6  
Old 01-15-2013
Alright. So your client's email application is the culprit, not your progress code. I guess now they should figure out what settings need to be changed to avoid this wrapping.

OR convert your file to HTML as suggested earlier.
# 7  
Old 01-15-2013
As bipinajith said earlier there is a very good chance it's the email client wrapping the text.

Wonder if they are using a unix character mail viewer like mutt or pine.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How can I send a mail from my outlook or other mail accounts to UNIX server?

Hi all, I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix. How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies

2. Shell Programming and Scripting

SELECT and wrapping to next column

Hi all, Am trying to write a menu driven script using SELECT and if I have more than 4 options, it wraps to the next column. That is if I have 6 choices, items 5 and 6 are in the second column. Is there any settings that control this behavior or is it due to some stty settings? stty -a... (3 Replies)
Discussion started by: newbie_01
3 Replies

3. UNIX for Advanced & Expert Users

How to relay mail to mail server from Unix ?

Hi, I need to send email notifications from Unix/Linux box to users using mailx. In these Unix/Linux boxes mail is not configured however we are having mail server configured in our LAN. Could you please provide instructions to configure relay in these boxes so that we can relay our mails... (3 Replies)
Discussion started by: sourabhsharma
3 Replies

4. UNIX for Dummies Questions & Answers

Putty and wrapping on SunOS 5.9

I am very frustrated with this. I've added the following into my .profile and .bashrc: #this one makes sure that long commands strings line wrap to the next line && return #instead of wrapping onto the start of the same line. shopt -s checkwinsize However, it just never works for me.... (7 Replies)
Discussion started by: mrwatkin
7 Replies

5. UNIX for Dummies Questions & Answers

Unix mail to personal mail, Strange behavour

Hi. I am running a script on solaris 10 and mailing it to my personal email. the script is ran as user xxx, And i have edited the crontab for user xxx to run the script and mail it to my email account. /network_check.sh | /usr/bin/mailx -s "Network Test" k454@hotmail.com the sript... (2 Replies)
Discussion started by: k00061804
2 Replies

6. Shell Programming and Scripting

Mail attachment with unix mail

Hi Could someone help me with the details on how to send an attachment through mail in unix. I have an html file in my unix machine and I want this to be send to some mail id, plese help with the steps. Regards Ajay (2 Replies)
Discussion started by: ajaykumarboyana
2 Replies

7. Shell Programming and Scripting

automatic word wrapping

Hallo, I want to have this Output: Name Street Phone Mail Favorite_thing_o f_what_ever_you_ want Jak street1 0123 jak@test blue egs .com O'Neill street2 4567 ... (1 Reply)
Discussion started by: wiseguy
1 Replies

8. Shell Programming and Scripting

Wrapping ksh script

Hi folks, We want to protect our ksh scripts from our customers.We don't want to let them the option to viewor modify the scripts. Is there a way ro wrap a ksh script? Thanks in advance, Nir (2 Replies)
Discussion started by: nir_s
2 Replies

9. UNIX for Dummies Questions & Answers

I am not able to send mail form unix to other mail accounts.

Using Mailx command i.e mailx -s "subject" chinni@hotmail.com < \tmp\chin this command executed sucessfully but not able to receive the mail in chinni@hotmail.com please help. (1 Reply)
Discussion started by: chinnigd
1 Replies

10. UNIX for Dummies Questions & Answers

can not send mail from unix server to company/yahoo mail

hi, Gurus, I need some help with sending mail out from my UNIX server: It is running Solaris 2.6 and the sendmail version is 8.8. Output of :/usr/lib/sendmail -d0.1 -bt < /dev/null Version 8.8.8+Sun Compiled with: LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NDBM NETINET ... (5 Replies)
Discussion started by: b5fnpct
5 Replies
Login or Register to Ask a Question