- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mailing html file from HPUX to outlook
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
Forums
Discussions
Discussions
Discussions
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
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
02-21-2003 01:35 AM
02-21-2003 01:35 AM
I want to send a html file from HPUX to outlook. I use the following command
ux2dos test.html | uuencode test.html | mailx -m -s "test" mail@mail.com
I get the html file as attachment, but I would like to receive that as html message instead of attachment.
Anybody can help me?
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 01:59 AM
02-21-2003 01:59 AM
Re: Mailing html file from HPUX to outlook
html files always an attachment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 03:40 AM
02-21-2003 03:40 AM
Re: Mailing html file from HPUX to outlook
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 04:46 AM
02-21-2003 04:46 AM
Re: Mailing html file from HPUX to outlook
cat test.html | mail mail@mail.com
or
mail <
`cat /usr/btmis/www/docs/hp/backup/backup.sys.html`
.
eof
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 08:45 AM
02-21-2003 08:45 AM
Re: Mailing html file from HPUX to outlook
Mail the file to yourself, and skil the uuencode part.
All better
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 10:25 AM
02-21-2003 10:25 AM
Re: Mailing html file from HPUX to outlook
It uses ascii.
I've found uuencode does strange things to files.
You always need to be aware of your mail relay server isn't patched properly it can chop up or even reject valid attachments.
The attached script is production and is therefore fully tested.
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
02-21-2003 10:31 AM
02-21-2003 10:31 AM
Re: Mailing html file from HPUX to outlook
In the body will be the html format text, not an html report.
I believe this was stated in one of the replies.
I am only confirming.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2003 10:24 PM
02-23-2003 10:24 PM
Re: Mailing html file from HPUX to outlook
FYI, this attchment is created mainly because of -m option in mailx. If I change this syntax in anyway it will just display html source code in my outlook. Otherwise sends as attachment.
I am wondering how omnirpt sends a mail. If any of you know, omirpt sends html directly to outlook. If I see the source code it is no different from the one I am sending from my UX box. Still couldn't figure out why I am seeing the source code instead of the html report.
Lets see if anyone has better idea.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 12:40 AM
02-24-2003 12:40 AM
Re: Mailing html file from HPUX to outlook
MIME-Version: 1.0
Content-Type: text/html; charset=us-ascii
etc..
I do not know if elm(1) will handle MIME. If not, it is probably best to call sendmail(1M) directly, like Steven does in his script, and add the required header lines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 12:44 AM
02-24-2003 12:44 AM
Re: Mailing html file from HPUX to outlook
I did tried sendmail option as suggested by Steven. It works exactly same as my command except that it adds a short message column.
Paulson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 12:51 AM
02-24-2003 12:51 AM
Re: Mailing html file from HPUX to outlook
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 04:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 06:47 AM
02-24-2003 06:47 AM
Re: Mailing html file from HPUX to outlook
Another thing to check is txt2pdf. This will convert your html file to a .pdf file, which is fairly invulnerable to Mail Transport Agents, virus checkers and other things which tend to munge email. You can get a freeware version from http://www.sanface.com/txt2pdf.html.
Check 'em out.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 06:37 PM
02-24-2003 06:37 PM
Re: Mailing html file from HPUX to outlook
Paulson.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 06:43 PM
02-24-2003 06:43 PM
Re: Mailing html file from HPUX to outlook
Fun isn't it Frank?
Well Done,
Jeff (we DO appreciate it)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 11:51 PM
02-24-2003 11:51 PM
Re: Mailing html file from HPUX to outlook
Yes, it is fun. It is especially fun when one's efforts are appreciated. If that appreciation is topped off with points, it's even greater.
"the Slootinator"! I have to remember that one. Better not tell what "sloot" or "weg" means. I would spoil the image! :-)
[No points (0 or N/A) for this response please.]