I know that we would be require HTML to change the font and color of the text of the output, if we wnt to send that through the email.
But I have managed to get below code, can someone look into it and let me know if i can acheive my requirement through this kind of code:
Following can be used:
Not sure, how to use above code in my script to change the font of the text to display in bold in the email. Any help on this would be much appreciated.
Thanks
Amit
---------- Post updated at 09:35 PM ---------- Previous update was at 05:27 PM ----------
Any one for help here?
Last edited by Scott; 12-01-2010 at 08:42 PM..
Reason: Code tags
how can I send an email in UNIX, attach a file and cc a receipient?
i use the command below to attach a file (this works):
uuencode path/filename filename | mailx -s "subject" addr@host.com
here is how i cc a receipient (this also works):
i have a file named cc.lis and contains:
Hello... (2 Replies)
Dear All,
We have following code to send mails from unix to users. We want to see few sentences of mail in bold font or to hightlight few lines in different colours. Could you please let me know how can we do it in function construct_body.
... (3 Replies)
Hi,
I am executing the following command in order to send a file as an attachment:
mailx -s "Subject" emailID@xyz.com < Testfile.txt
Instead of attaching the file Testfile.txt, it is writing the contents of the file in the email message body. Please advise on how I can send the file as an... (7 Replies)
I am using the following syntax to send an e-mail from Unix (Sun OS).
mail -s "hello" abc@yahoo.com
But, when I click enter after typing this command, its not exiting and after a while when I give ctrl+c it creates a dead.letter file in my $HOME dir. Can anyone please tell me, if I have to... (7 Replies)
Hi,
I have create a unix prog file to validate data and send out an email. Below is the command used to send out email in the program. But it is not triggering the email.
Please advice on this.
(echo ${MESSAGE};uuencode "$FCP_OUT" "ERROR_REPORT.csv"; uuencode "$VALIDATION_RPT"... (1 Reply)
Hi All,
I need to send email from unix in the below format. But the email body is coming all in one single line.
How do i format the below text, so that the body of email is properly formatted.
Please help.
TO: <email id>
CC: <none>
BCC: <none>
Subject: Support: file GENERATION is... (3 Replies)
Hi,
I am trying to send an output of a script in an email.
I want to know if there is a way to modify the senders email not as my username on the host server but as one of the sender preset on outlook.
I was using
cat email.log | /bin/mailx -c cclist -r myemailid -s "subject" tolistids
... (4 Replies)
Need assistance . I have a cvs file which i changed to html file but when i try to send mail to outlook its indent goes wrong. any idea is appreciated .
below are some commands i tried using
Converting csv to html
#!/bin/sh
nawk 'BEGIN{
FS=","
print "MIME-Version: 1.0"
print ... (7 Replies)
can you tell me what is the syntax if I need to keep someone in cc with the below email.
mailx -s "shell script completed successfully" arun@gmail.com < /dev/null (4 Replies)
Discussion started by: ramkumar15
4 Replies
LEARN ABOUT NETBSD
set_color
set_color(1) fish set_color(1)NAME
set_color - set_color - set the terminal color
set_color - set the terminal color
Synopsis
set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR]
Description
Change the foreground and/or background color of the terminal. COLOR is one of black, red, green, brown, yellow, blue, magenta, purple,
cyan, white and normal.
o -b, --background Set the background color
o -c, --print-colors Prints a list of all valid color names
o -h, --help Display help message and exit
o -o, --bold Set bold or extra bright mode
o -u, --underline Set underlined mode
o -v, --version Display version and exit
Calling set_color normal will set the terminal color to whatever is the default color of the terminal.
Some terminals use the --bold escape sequence to switch to a brighter color set. On such terminals, set_color white will result in a grey
font color, while set_color --bold white will result in a white font color.
Not all terminal emulators support all these features. This is not a bug in set_color but a missing feature in the terminal emulator.
set_color uses the terminfo database to look up how to change terminal colors on whatever terminal is in use. Some systems have old and
incomplete terminfo databases, and may lack color information for terminals that support it. Download and install the latest version of
ncurses and recompile fish against it in order to fix this issue.
Version 1.23.1 Sun Jan 8 2012 set_color(1)