- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sending html attachment using sendmail
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
тАО04-15-2010 11:05 PM
тАО04-15-2010 11:05 PM
I got a script which i am using to send .html file embedded in an email using sendmail from my hpux box.
Now, everything is ok with the email except 2 images which are added to the html code.
When i get the email in my outlook, i don't see the images in the message body.
This is the script i am using
#! /usr/bin/ksh
MTA=/usr/lib/sendmail
VERSION=1.0
{
echo "From: sjaising@corp.com"
echo "To: sjaising@corp.com"
echo "Subject: Audit Mail"
echo "X-Mailer: htmlmail" $VERSION
echo "Mime-Version: 1.0"
echo "Content-Type: text/html; charset=US-ASCII"
echo
echo "`cat /home/rpotnuru/audit/audit_test.html`"
} | eval $MTA "sjaising@corp.com"
exit 0
and this is the htmml file
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
E&J Project - Audit Details |
Redbrick Run Date | Subject Area | Table Name | Acronym | Redbrick Count | Oracle Run Date | Oracle Count |
Row1 | Row1 | Row1 |
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2010 12:27 AM
тАО04-16-2010 12:27 AM
Re: sending html attachment using sendmail
Try to specify also the protocol when inserting images like this:
Best regards,
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2010 12:38 AM
тАО04-16-2010 12:38 AM
Re: sending html attachment using sendmail
That did not help.
When i right click on the image box in outlook, i get 2 options. 1. copy, 2. Download.
Usually download option shows the image, but not in this case.
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2010 03:52 AM
тАО04-16-2010 03:52 AM
Re: sending html attachment using sendmail
What do you get in this case? Can you see the table formatted as it should be?
I am talking about:
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2010 04:39 AM
тАО04-16-2010 04:39 AM
Re: sending html attachment using sendmail
>
> [...]
Is that really what's in your HTML? Did you
expect that to work? ("393"?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2010 06:10 AM
тАО04-16-2010 06:10 AM
Re: sending html attachment using sendmail
Better you write this goodness to a file and use a script to attach the file.
http://www.hpux.ws/mailfile2
Change the details before you use my script.
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
тАО04-16-2010 10:11 PM
тАО04-16-2010 10:11 PM
Re: sending html attachment using sendmail
I tried viewing the email in webmail. Doesn't help. ALso tried the hyperlink, but no luck.
Steven,
I got the html file from my client and i am just trying to send it in an email.
I am not a html expert. I don't understand what the html code is.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2010 10:22 PM
тАО04-16-2010 10:22 PM
Re: sending html attachment using sendmail
I tried your script.
Using that i got the .html file as an attachment.
When i open the attachment i can't still see the image on the html page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2010 10:47 PM
тАО04-16-2010 10:47 PM
SolutionDo you understand what a valid IP address
looks like? "8.1.393.2" is not a valid IP
address. (An octet can't be greater than
255.)
> I got the html file from my client [...]
Apparently, either you damaged it, or else it
was no good before you tried to turn it into
e-mail. Try putting this into a Web browser:
http://8.1.393.2/themes/base/clear.gif
If that doesn't work (and it can't possibly
work) outside of any e-mail message, then it
won't work inside an e-mail message, either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2010 09:04 PM
тАО04-17-2010 09:04 PM
Re: sending html attachment using sendmail
I was ignorant to see this mistake.
I have requested correct data from the client.
Sunny