[WebDNA] Inline email images
This WebDNA talk-list message is from 2011
It keeps the original formatting.
numero = 107322
interpreted = N
texte = HiI have code that sends out plain text and html emails that works fine =but I want to try and include inline images into the html. I can get the =image to attach itself to the email but I can't seem to place it where I =want if that makes sense. It just shows as an attachment not as an =inline image.=20Does anyone have any code examples that work that they are willing to =share?This is what I've been playing with...[sendmail =to=3Dxxx&from=3Dxxx&subject=3Dxxx&MIME-Version=3D1.0&Content-Type=3Dmultip=art/mixed; boundary=3D"AsylumEmailer[cart]"]--AsylumEmailer[cart]Content-Type: text/plain; charset=3D"iso-8859-1"; format=3D"flowed"Order receipt is in HTML format--AsylumEmailer[cart]Content-Type: text/html; charset=3D"iso-8859-1"Text above
![](3D"cid:EmailHeader.jpg")
Text below--AsylumEmailer[cart]Content-Type: image/jpeg; name=3D"EmailHeader.jpg"Content-Transfer-Encoding: base64Content-Id:
[encrypt method=3Dbase64&file=3DEmailHeader.jpg&EMAILFORMAT=3DT][/encrypt]=--AsylumEmailer[cart][/sendmail]This basically works in that I get an email containing plain and html =sections, I get the image attached but not as an inline part of the =HTML. The cid: in front of the image was using something I'd seen in an =email that had been sent to me, not sure if it's write or not.Any help much appreciated.Cheers=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSteve Craig - Asylum Interactive LtdTel +44 1330 860550 Fax +44 1330 860880=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dhttp://www.asylumweb.comEmail: steve@asylumweb.comSkype: s.craig - iChat: steve.craig=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Associated Messages, from the most recent to the oldest:
HiI have code that sends out plain text and html emails that works fine =but I want to try and include inline images into the html. I can get the =image to attach itself to the email but I can't seem to place it where I =want if that makes sense. It just shows as an attachment not as an =inline image.=20Does anyone have any code examples that work that they are willing to =share?This is what I've been playing with...[sendmail =to=3Dxxx&from=3Dxxx&subject=3Dxxx&MIME-Version=3D1.0&Content-Type=3Dmultip=art/mixed; boundary=3D"AsylumEmailer[cart]"]--AsylumEmailer[cart]Content-Type: text/plain; charset=3D"iso-8859-1"; format=3D"flowed"Order receipt is in HTML format--AsylumEmailer[cart]Content-Type: text/html; charset=3D"iso-8859-1"Text above
![](3D"cid:EmailHeader.jpg")
Text below--AsylumEmailer[cart]Content-Type: image/jpeg; name=3D"EmailHeader.jpg"Content-Transfer-Encoding: base64Content-Id: [encrypt method=3Dbase64&file=3DEmailHeader.jpg&EMAILFORMAT=3DT][/encrypt]=--AsylumEmailer[cart][/sendmail]This basically works in that I get an email containing plain and html =sections, I get the image attached but not as an inline part of the =HTML. The cid: in front of the image was using something I'd seen in an =email that had been sent to me, not sure if it's write or not.Any help much appreciated.Cheers=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DSteve Craig - Asylum Interactive LtdTel +44 1330 860550 Fax +44 1330 860880=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dhttp://www.asylumweb.comEmail: steve@asylumweb.comSkype: s.craig - iChat: steve.craig=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Steve Craig
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Bug or syntax error on my part? (1997)
Limiting [FoundItems] (2000)
Replacing entry (1998)
Error Log.db --however (1997)
Languages (1997)
[OT] photos and misc. (2004)
WC2.0 Memory Requirements (1997)
Shopping carts and reloading pages (1997)
WebCat2 beta 11 - new prefs ... (1997)
Progress !! WAS: Trouble with formula.db (1997)
Cool new site (1996)
Webcatalog 4.0 - When will we be able to beta test it? (2000)
Limit picture size on upload (2005)
How to set triggers (1998)
all records returned. (1997)
Where is f2? (1997)
Authenticate (1997)
Country & Ship-to address & other fields ? (1997)
HideIf ip= OR ip= (1998)
PCS Frames (1997)