A "mail" is basically a (raw) text document, like an ASCII file. You cannot "format" it with markup.
There is the MIME standard that allows mail to contain (several) parts which are not text. This nowadays is regularly used to send mail in HTML format, with embedded pictures and even embedded scripts (like Javascript, ...). This in fact is why mail became so dangerous in the last years: the possibility to send executable code and all sorts of possibly malign parts in a mail along with mail client programs (Outlook foremost) which executes everything sent to it automatically to make life for the user more "comfortable".
Correctly configured mail programs convert every mail from any format (HTML, rich text format, ...) into simple ASCII and will not execute any code at all. True, it won't look as dazzling, but if you have information to get across instead of presentation you will appreciate the riskless and non-dangerous property of this way.
Bottom line: As you need to change the text of your mail anyway (converting it to HTML means adding HTML tags which also changes the text) you should consider simpler ways to let certain lines stand out, i.e.:
Which is simple and does the same - let the important line stand out.
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)
Hi All,
I have a file that contains following entries.
I want to highlight the line that has word as "FAILURE" while sending the email.
File
------------------------------------------------------------
Job Name: ABC
Start Time: 07/20/2019 07:32:39
End Time: 07/20/2019... (4 Replies)
Hi Guys..
yesterday i purchased a VPS server and installed sendmail on ubuntu 12.4 with Webmin & Apache runing webserver
problem is..
i can send mail via webmin user interface account to anybody to out side to any domain and able to recieve any mail from any domain..
Now main... (2 Replies)
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)
I am writing sql reports to an oracle database, spooling them to a file and emailing them with mailx. I use the syntax below. The reports do not format properly, unless I use the Courier New font. How do I set this with mailx?
mailx -s "MY REPORT, `date +'%D %r` " -r "REPORTING SYSTEM"... (2 Replies)
Hi
The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment .
cat Employee.sql
SET VERIFY OFF
SET PAGESIZE 200
SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON -
HEAD... (0 Replies)
Hi,
I would like to change the font size in bash. I know how do it in ksh:
F_VDOBLE="\033#6"
print "${F_VDOBLE}Esto es..."
But in bash I don't know
Could you help me please?
Many thanks! (5 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)