Hello,

I have such a part in my mails:

[...]
...
Content-Description: HTML text

=EF=BB=BF<html><head><meta http-equiv=3D"content-type" content=3D"text/html;=
 charset=3DUTF-8"></head><body><table>
<tr>
<td>tabelle zeile vor Bild</td>
<td><img src="" class="moz-txt-link-rfc2396E" href="">"cid:image003"></td>
<td>tabelle zeile nach bild</td>
</tr>
</table>
</body></html>
--0F56C4EB_32E769BF_Synapse_boundary--

--0F56C4EA_32E769BF_Synapse_boundary
Content-type: image/PNG; name="image003.png"
Content-Transfer-Encoding: Base64
Content-ID: image003
Content-Disposition: inline; FileName="image003.png"
Content-Description: Included file: image003.png

iVBORw0KGgoAAAANSUhEUgAAAdoAAAB2CAYAAABvTVKOAAAAAXNSR0IArs4c6QAAAAlwSFlz
...

[...]

But I found no way with synapse to get the correct result (picture inline the text).

I decode this mail with your eyample code like
...
 part.decode
 htmlviewer.loadfromstring(part.PartBody.Text);
 //htmlviewer.loadfromstring(part.lines.Text); 
 //htmlviewer.loadfromstring(DecodeQuotedPrintable(part.PartBody.Text));
 //ect.
 for n := 0 to part.GetSubPartCount - 1 do  begin
    AddMime(part.getsubpart(n));
  end; 
...

I send the mails with
...
if Mmmailausganghtmlmail.Text <> '' then
    begin
      sendText:='<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"></head><body>';
      sendText:=sendText + UTF8Decode(Mmmailausganghtmlmail.Text);
      sendText:=sendText + '</body></html>';
      oSmtpClient.BodyAsHtml.Text := sendText;
    end;
    for i := 0 to inlineAttachST.Count - 1 do
    begin
      if pos(inlineAttachST.Strings[i], Mmmailausganghtmlmail.Text) > 0 then
        oSmtpClient.AddInlineAttachment(inlineAttachST.Strings[i], '');
    end; 
if oSmtpClient.Send(.....) then showmessage ('Send ok');
...

The same mail sended with PHP Mail() function shows the correct result (picture inside).

Can you help me to get the picture inside the text sending with synapse and showing with synapse (and THTMLViewer-Component)?

Tanks

Josef
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to