Bold characters in mail


 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Bold characters in mail
# 1  
Old 11-05-2008
Bold characters in mail

I sh,
I have bold characters in a file and I want to mail file to an ID.

$cat file
Incorrect or invalid external email IDs in TO and CC list for email_rules:

If I pass this file to mailx
$ cat file | mailx -s "hi" abc@xyz.com

What I get in mail is
Incorrect or invalid external email IDs in TO and CC list for email_rules:

I want to preserve these bold characeters.
Can someone help?
# 2  
Old 11-05-2008
The mail command cannot determine what the bold characters mean. Maybe you should send an email with the html bold signs.
# 3  
Old 11-05-2008
Quote:
Originally Posted by chatwizrd
The mail command cannot determine what the bold characters mean. Maybe you should send an email with the html bold signs.

But <Ctrl V> is not understool by the unix file.
Here mail command is taking input from a file.
# 4  
Old 11-05-2008
What does ctrl v have to do with anything?
# 5  
Old 11-05-2008
Quote:
Originally Posted by chatwizrd
What does ctrl v have to do with anything?
can you please let me know how are you suggesting to use html tags?
# 6  
Old 11-05-2008
Like:

Content-Type: text/html
<b>TEXT</b>

Might be other header info you have to pass I didnt test it.
# 7  
Old 11-05-2008
Quote:
Originally Posted by chatwizrd
Like:

Content-Type: text/html
<b>TEXT</b>

Might be other header info you have to pass I didnt test it.
Sorry, I didnt get you. Do you want to print "<b>TEXT</b>" in the file?
Please note body of the mail is inputted from a file.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Bold text in Bash and send mail

I have a sample script here I want to bold the word BOLD in the text and send through email. Tried several ways but not seems to working. BODY="Hello. I want to BOLD this" { echo "From: from@gmail.com" echo "To: to@gmail.com" echo "Subject: Texting" ... (1 Reply)
Discussion started by: lpoolfc
1 Replies

2. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies

3. Shell Programming and Scripting

New Line Characters in MAIL ATTACHMENT

Hi All, I Have a input file A FILE A STRUCTURE AAAAAAAAAAA BBBBBBBBBBBB CCCCCCCCCCC ... While Sending email i am receiving new line format after each record . The data looks like below AAAAAAAAAAA BBBBBBBBBBBB (2 Replies)
Discussion started by: AspiringD
2 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. UNIX for Dummies Questions & Answers

Need help getting rid of bold characters

Hi! So i've got this shell script that asks questions and the user is required to input answers. The answers typed are bold. sh-*.*$ sh filename dir cat question tput bold read ans tput sgr0 ... and so on tput sgr0 exit So when the script ends i don't get the bold characters... (3 Replies)
Discussion started by: Kingzy
3 Replies

6. Shell Programming and Scripting

Bold Characters

Hi All, How to make the characters bold in k shell. like for example "File is too large to view" to "File is too large to view" is it like echo "File is too large to view" Please advice and samples (18 Replies)
Discussion started by: rajeshorpu
18 Replies

7. Shell Programming and Scripting

Making Some Characters in file BOLD

Hi All, I want to make some characters to be bold in a file. I have a file e.g aa.log which contains rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr gfgfgdaerqrqwrqerqwrwqwrqrqwrqr qqwerqwrqwrqwrqwrqwrqwrqwrq qwrqwrqwrqwrqwrqwrqwrqwrqwr File is too large to view Last line... (2 Replies)
Discussion started by: rajeshorpu
2 Replies

8. Shell Programming and Scripting

Bold characters in a file using Shell script

Hi, When I am running below mentioned script then the characters become bold but after opening the same file in Windows, Instead of getting bold characters i am getting some garbage value for \033Kunal Dixit Output in Windows (after ftp the file): but in windows , i am getting My name is... (0 Replies)
Discussion started by: kunal_dixit
0 Replies

9. Shell Programming and Scripting

Bold characters in c shell

Hi, Can someone tell me how to display characters in Bold in C shell?? (9 Replies)
Discussion started by: hemangi13
9 Replies

10. Solaris

how to forward mail in /var/mail/username to external mail

Dear All, Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do? thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies
Login or Register to Ask a Question