Darren D
darren at activebilling.com.au
Mon Apr 13 18:01:09 CDT 2009
Hi Stuart OK - That's the end of that then :-) Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, 08 April 2009 7:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Embedded Image in HTML You can't set it in HTML. Your HTML is in one part of a multipart message. The data pointed to by the cid is in another, completely separate part of the message, with its own Content-Type, Content_ID etc headers. The image data will need to be encoded for email transport as well, probably using Base64 encoding. Basically, you are going to have to construct the whole message yourself including standard and MIME headers, boundaries,encoding etc and then come up with your own MAPI or SMTP transport to despatch the message. Before you do that you are going to have to be very familiar with the basic standards for all internet mail contained in RFC 822 and then go on RFCs 2046 and 2111 for a start and get an understanding of how a multipart MIME message is structured. You will probably also need to be familiar with RFCs 2045, 2047, 2049, 4288, and 4289 among others. Note: RFC = "Request For Comments" = a memorandum published by the Internet Engineering Task Force (IETF) describing methods, behaviors, research, or innovations applicable to the working of the Internet and Internet-connected systems. Many RFCs including the ones listed above are adopted byt the IETF as "Internet Standards" See http://www.rfc-editor.org/rfc.html Have fun :-) On 8 Apr 2009 at 17:57, Darren D wrote: > Hi Team > > I am storing a big heap of HTML in a field then using it to send HTML formatted > emails > > The Problem comes when adding images to the email > > Traditionally we'd have a syntax in the HTML referring to the image something > like > > src="C:\Documents and Settings\darrend\Desktop\image002.jpg" alt="our logo"> > > or > > src="file://C:\Documents and Settings\darrend\Desktop\image002.jpg" alt="our > logo"> > > > > I have since discovered there is a thing called cid that might be called like > this > > src="cid:CompanyLogo" alt="our logo"> > > > > The CID means Content ID and allows for 'embedding' rather than linking > > But the problem is I am unable to 'set' this content ID in the HTML - I don't > know how > > Does anyone know how to set this stuff up - In pure HTML? > > I have found VB and VBA samples but I have no clue how to write this sort of > stuff in HTML > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com