- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Registered Trademark and Bold text from Unix m...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2003 04:04 AM
тАО11-11-2003 04:04 AM
I am sending a text file out as the body of an email using sendmail. I have been asked to include a "registered trademark" in the text as well as BOLD some other text.
It is my understanding that in order to do this, I would have to generate the email body in HTML format and then the email client, say Lotus Notes, or Microsoft Outlook would then present the email body with the special characters and formatting.
However, I do not want to get into HTML coding of this email. I could do it but what would I do if the end user does not accept or want HTML encoded email?
Is there an ascii character for "registered trademark" and is there any other way to format the text for a body of an HP-UX generated email other than html?
Any advice would be greatly appreciated and points will be rewarded.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2003 04:11 AM
тАО11-11-2003 04:11 AM
SolutionThe only way to get bold characters into the email is the html method. That doesn't mean it is the only way. That means I studied it for several hours, ran some searches and eventually solved the probme that way.
In order to send it out text based, I used Microsoft word, save as web page and then edited the file so it would work correctly.
I used the script I'm attaching to do the job. This script does attachments and can have a line added to read the file into the body.
The html isn't so bad.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2003 07:41 AM
тАО11-11-2003 07:41 AM
Re: Registered Trademark and Bold text from Unix mail?
However, I'm still having trouble when I simply want the html to show up as "web" content in the email body when viewed with an html enabled email client (Lotus Notes in my case.) What I've tried so far:
1) First uuencode the HTML file then use output of `cat filename` ( of uuencoded output )as the body using sendmail and it shows up as an html attachment.
2) Use output of `cat filename` on the HTML file as body using sendmail and it shows up as simple text.
I'm guessing there must be a tag that I need to add to the html but it seems that html formatted emails I've received don't have any special tags.
Still looking. I'll post again when this last puzzle is figured out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2003 10:24 AM
тАО11-11-2003 10:24 AM
Re: Registered Trademark and Bold text from Unix mail?
Make sure you start out with the required headers... like:
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
You can add "Reply-To:" or other headers as needed, obviously.
These two will get you started, and identify the mail as html format.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2003 05:56 PM
тАО11-11-2003 05:56 PM
Re: Registered Trademark and Bold text from Unix mail?
As for the formatting: isn't there someone out there who has created a HTML macro file for nroff/troff/groff? With that it would be easy to create both files by running it with two -T options (html and ascii). With the correct text inbetween those texts that would solve your issue of formatting the text.
I don't have a environment right now to test it, otherwise I would have looked into it further. Also, you could take a look at the mail modules for perl. I think they can help you solve this too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2003 04:22 AM
тАО11-12-2003 04:22 AM
Re: Registered Trademark and Bold text from Unix mail?
BODY=`cat body.htm`
/usr/sbin/sendmail -fJohn_Read@something.com john_read@something.com <
Content-Transfer-Encoding: 7bit
Subject: "test"
${BODY}
EOF
Last question: Elmar mentions sending the body twice in one mail (html and text.) I'm not sure what you mean by that. Are you saying there's a way for the email client to read the text version if the html can't be processed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2003 06:49 PM
тАО11-13-2003 06:49 PM