Sending email message in colour and bold letter


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Sending email message in colour and bold letter
# 1  
Old 02-06-2010
Sending email message in colour and bold letter

The code
echo -e "\033[34m Test \033[0m Mail"
when i execute this command line i get proper output
but when i mail the output of this command through sendmail it doesn't appear. Basically I want to send email message in diffrent colours, bold letter using shell script.
# 2  
Old 02-06-2010
What you are doing is adding termcap/terminfo entries into your email message. As long as the reader of the email uses a terminal session with the same attributes, the reader will see the message in color.
If the reader is going to use a "standard" MS windows email client, then you should add HTML tags to your email.
To see what this looks like, try creating the a message the way you want to see it in Outlook Express/Thunderbird/etc and send it to a recipient on your unix system, then retrieve the email from /var/spool/mail/recipient.
Then create your script to create a similar email.
# 3  
Old 02-07-2010
Thanks for the reply. Appreciated !!
I forgot to mention that I have installed cygwin ( unix shell env) on my windows machine and trying to send email through shell script . My requirement is that I want to send email message in bold and colour words to the users using shell script. My users use lotus notes client for email.

Thanks and Regards
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Sending email with message body and attachment

Hello experts!! I am trying to send an email with message body and attachment.but i am getting any one like message body or attachment. I tried below command: (echo "subject:test";echo "MIME-Version: 1.0";echo "content-transfer-encoding:base 64";echo "content-type:txt;name=test.txt";cat... (2 Replies)
Discussion started by: Devipriya Ch
2 Replies

2. Shell Programming and Scripting

Message Body while sending an email

I am making use of the following code to display the results of my txt file in an email: mail -s 'Count Validation Test Comparison Results' Ronit@XYZ.com < Count_Validation_Results_`date +%m%d%Y`.txt Email Output: ----------Query 1 Count Validation Results-------- Source count is 4 Target... (7 Replies)
Discussion started by: ronitreddy
7 Replies

3. UNIX for Advanced & Expert Users

Bold letter in email body

Hi All, The below is the email text and i want few words in BOLD. I am writing the below message in to a .txt file and calling it in a function which generated email. when i run at cmd prompt it is working fine , but wehn i run a script .sh it is not working. Below is the text printing in to... (2 Replies)
Discussion started by: kiranparsha
2 Replies

4. Shell Programming and Scripting

Using top command to email if process is exceeding 25% and sending an email alert if so

This is my first time writing a script and Im having some trouble, Im trying to use the top command to monitor processes and the amount of CPU usage they require, my aim is to get an email if a process takes over a certain percentage of CPU usage I tried grep Obviosly that hasnt worked, Any... (8 Replies)
Discussion started by: jay02
8 Replies

5. Shell Programming and Scripting

Color Underline and Bold letter in shell script

Hi All, This is my first port..... I am using AIX 5L, installed 10g database. On daily basis we takes rman backup. This backup status info strored in a log file. I write a script to know the status of back means I will fire this script and this script will send a mail to me. #!/bin/bash... (16 Replies)
Discussion started by: mcagaurav
16 Replies

6. Shell Programming and Scripting

mailx requirement - email body header in bold and data content in normal text

Dear all- I have a requirement to send an email via email with body content which looks something below- Email body contents -------------------- RequestType: Update DateAcctOpened: 1/5/2010 Note that header information and data content should be normal text.. Please advice on... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies

7. UNIX for Dummies Questions & Answers

Bold Text In Email

Hello, I email some info daily to my employees using a script. But they tend to overlook an important part so I wanted to bold that particular section. Everyone here uses outlook to receive their emails. I would like to know how to send an email to my employees with some parts in bold. (3 Replies)
Discussion started by: Amonkira
3 Replies

8. UNIX for Advanced & Expert Users

To change the colour of the content in email sent through unix

Hi I want to change the color of the email content sent through unix. I tried a lot and left in vain. I heard that it could be done by sending the email as HTML. But I don't how to do it. Can you all share your ideas? ~sakthifire (1 Reply)
Discussion started by: sakthifire
1 Replies

9. UNIX for Dummies Questions & Answers

Sending mail in the dead.letter file

Sorry for this one ladies and gents, it's probably very easy but I don't know how to, sound familiar :-) I'm using sendmail on a web server that sends some mail through forms, not many. I've got sendmail configured to use our networks relay host and everything was working well. The power... (4 Replies)
Discussion started by: mjdavies
4 Replies
Login or Register to Ask a Question