Bold characters in mail


 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Bold characters in mail
# 8  
Old 11-05-2008
Dunno I got it to work with sendmail but not mailx or mail commands. Might have to play around with settings.

I also found these threads:

https://www.unix.com/unix-advanced-ex...nix-mailx.html

Well you will have to replace the bash bold statements with ones that are html based.

After altering the mail to html format you can use the sendmail command to send the email because I dont think mailx can interpret the html.

Last edited by DukeNuke2; 11-05-2008 at 04:07 PM.. Reason: posts merged...
# 9  
Old 11-05-2008
As per RFC822 (updated by RFC2822 and RFC5322) mail messages are text-only. If you want to send any form of binary data (which includes text enriched with formatting sequences) you will have to rely on the MIME format laid out in RFC2045, RFC2046 and RFC2049. Declare your message "multipart/mixed" in the MIME header in this case and read the RFCs to understand the requirements.

Otherwise and if you want to adhere to classic RFC822-formatting use "uuencode" (man uuencode) your text and send it this way. The receiving party can use "uudecode" (man uudecode) to retrieve the original file from there. In fact this is what uuencode/uudecode have been designed for.

I hope this helps.

bakunin
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