473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

How to create an HTML MIME with embedded images

Sorry for the cross postings, but I'm getting nowhere.

Does anyone know how to create a MIME for an HTML email that contains
images? I can create the MIME body parts, but I don't know how to get the
HTML to point to the image parts.
JMH.
Nov 17 '05 #1
5 2124
John Mark Howell <jm*********@hotmail.com> wrote:
Sorry for the cross postings, but I'm getting nowhere.

Does anyone know how to create a MIME for an HTML email that contains
images? I can create the MIME body parts, but I don't know how to
get the HTML to point to the image parts.
JMH.


Why would you want to mess with the MIME portions of a message? Let the
mail agent do it. See this for info on writing HTML mesages:
http://www.slipstick.com/mail1/html.htm
--
Brian Tillman

Nov 17 '05 #2
Correct me if I'm wrong, but you're referring to using CDO which can be
installed with Outlook (CDO is no longer available as a separate
distribution).
If so, then Outlook would be on the machine and I would much prefer using
that. All I have is POP3 and SMTP access via TCP/IP w/ SSL.
I'm hoping you come back and tell me that there is something released with
every copy of XP that I can use.

"Brian Tillman" <ti*********@yahoo.com> wrote in message
news:OC**************@TK2MSFTNGP12.phx.gbl...
Why would you want to mess with the MIME portions of a message? Let the
mail agent do it. See this for info on writing HTML mesages:
http://www.slipstick.com/mail1/html.htm

Nov 17 '05 #3
John Mark Howell <jm*********@hotmail.com> wrote:
Correct me if I'm wrong, but you're referring to using CDO which can
be installed with Outlook (CDO is no longer available as a separate
distribution).
You're wrong.
If so, then Outlook would be on the machine and I would much prefer
using that. All I have is POP3 and SMTP access via TCP/IP w/ SSL.
I'm hoping you come back and tell me that there is something released
with every copy of XP that I can use.


Your question is obviously not an Outlook question, so you're better off in
a Windows programming newsgroup.
--
Brian Tillman

Nov 17 '05 #4
Take a look at System.Web.Mail, which wraps CDOSYS. This looks like a good place to start -- http://www.systemwebmail.com/

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"John Mark Howell" <jm*********@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl...
Sorry for the cross postings, but I'm getting nowhere.

Does anyone know how to create a MIME for an HTML email that contains
images? I can create the MIME body parts, but I don't know how to get the
HTML to point to the image parts.
JMH.

Nov 17 '05 #5
Your mail structure should look like this:
-multipart/related
+mulitipart/alternative
*text/plain
*text/html
+image.gif (content-id: sampleID)

You should "cid:"'s as src of images:
<img href="cid:sampleID" />

content-id header of the imege mime object shoud be set to apropriate
ID:
content-id: sampleID

Or you can use this component:
http://www.lesnikowski.com/mail

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Damien | last post by:
Hi to all, After hours of attempts and "googling", I'm still pulling my hair off my head when I try to send multipart html emails. It "works" on PCs with Outlook when I juste send a single...
7
by: TLMM | last post by:
I have an HTML page which is a newsletter. I want to be able to add it to an email message so I can email it to people. I want it to be in the body of the email, not sent as an attachment. There...
3
by: T.Michelle | last post by:
We have few Mail templates (.html) which we use to send mails. We want to have some Logo in that ie ... when I send the mail to user the image should go as in-line embedded image in mail....
4
by: John Mark Howell | last post by:
Sorry for the cross postings, but I'm getting nowhere. Does anyone know how to create a MIME for an HTML email that contains images? I can create the MIME body parts, but I don't know how to get...
3
by: marsandys | last post by:
Hello, I have this code below, which I am trying to have it send HTML formatted mail with embedded images. I can get this to send the mail, but it spits out a bunch of junk . I know this should...
3
by: John Mark Howell | last post by:
I've got a MIME message that was originally an HTML email with embedded images. When the email is received (to GMail) it is now in MIME format. The HTML portion is now split out into the HTML and...
2
by: strout | last post by:
It's a pain to create each button with 2 images: button_on.gif button_off.gif I am looking for a control that have on/off two states, preferred as BACKGROUND images and with button text on it. ...
8
by: barb | last post by:
So that the world at large benefits from our efforts, here is one fully documented way to use Windows Irfanview freeware to create thumbnail web galleries (http://www.irfanview.com). STEP 1:...
136
by: 1001 Webs | last post by:
Every respected Web-authoring Guru says that. This is the era of table-less design, CSS code, XHTML compliant websites. Separate layout from content. There's no reason to use tables any more....
2
by: lawpoop | last post by:
Hello all -- I'm having a problem getting images to appear in the body of an HTML email using PEAR's mail_mime class. Here's my code, what am I doing wrong? include("Mail.php");...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.