Reply
Old 10-18-2005, 04:01 PM Mime Mail
Experienced Talker

Posts: 47
Trades: 0
I am trying to create a PHP script to send out a mail using mime types. Everything works correctly except for the Mime itself. Right now I am sending this as a test. What It does is send a simple HTML file with an inline image. The inline image shows as missing, and it is attached to the email. If I open the attachment I can view the image and it shows up correctly but on the email itself it shows up the red X for image missing. Is there something I am doing wrong?

Here is my mime code:
Code:
Mime-Version: 1.0
Content-Type: multipart/related; boundary="DMW.Boundary.605592468"
Content-Transfer-Encoding: 7bit

ERROR

--DMW.Boundary.605592468
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<img src="cid:image001">
<br>
asdf

--DMW.Boundary.605592468
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="image001.jpg"
Content-ID: <image001>

encoded image is here
Basically, I want to figure out why the image shows up as missing.

Thanks again for your support

Last edited by Synchronize; 10-18-2005 at 04:08 PM..
Synchronize is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-18-2005, 04:09 PM
Experienced Talker

Posts: 47
Trades: 0
Alright, nevermind. I found a solution to the problem. I was looking through a Microsoft Word generated mht file and noticed that they put 3D instead of the first opening " in their tags. So I changed my img tag to this:

HTML Code:
<img src=3D"cid:image001">
And it worked like a charm
Synchronize is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Mime Mail
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11369 seconds with 13 queries