this is what i do in case of an attachment:
        MimePart := Msg2.AddPartMultiPart('mixed', nil)
        tmpHTML.Text := tmpH;
        Msg2.AddPartHTML(tmpHTML, MimePart);
        tmpHTML.Text := tmpT;
        Msg2.AddPartText(tmpHTML,MimePart);
          tmpFile := TFileStream.Create(tmp,fmOpenRead or fmShareDenyNone);
          try
            Msg2.AddPartBinary(tmpFile, FileName, MimePart);
          finally
            tmpFile.Free;
          end;




בתאריך 21/02/2007 10:15:52, Lukas Gebauer - [EMAIL PROTECTED] כתב:
> after some more tests the source of the problem is found:
> if i have attachments in the email im sending
> im using multipart/mixed, otherwise i use multipart/alternative
>
> only when i have attachments outlook (2003 in this case)
> recognize the html part as an attachment as well
> along with the real attachment
>
> i guess changing the order of the parts, will consider the text part
> as the attachment can i use multipart/alternative, also when i have
> attachments? is there any other idea how to solve this issue?

Did you have similar parts structure?

1 multipart/mixed
1.1 multipart/alternative
1.1.1 text/plain
1.1.2 text/html
1.2 text/html (or other attachment...)



--
Lukas Gebauer.

E-mail: [EMAIL PROTECTED]
http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to