Re: TidSMTP attatchments problem

Giganews Newsgroups
Subject: Re: TidSMTP attatchments problem
Posted by:  Khaoz (giulianisanch…@gmail.com)
Date: Mon, 10 Apr 2006

> I developed an application for email sending, however the attachments are de
> liver in binary format mixed with the message body.
>
> In previous messages I read the following question:
>
> > Would I need to set the content type for each and
> > every existing file when creating attachments?
>
> And Gambit say "Yes".
>
> Can this solve my problem ? How to set ContentType for each attach. ?

Just a example (maybe it's not a binary format but a crypted format):

============================= My Mail ==============================

This is a multi-part message in MIME format

--uUdVbBZVGT7w=_Mo9TnK4YHkAjhOCcho21
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

teste

--uUdVbBZVGT7w=_Mo9TnK4YHkAjhOCcho21
Content-Type: application/octet-stream;
        name="horarios.ods"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
        filename="horarios.ods"

UEsDBBQAAAAAADhuaDOFbDmKLgAAAC4AAAAIAAAAbWltZXR5cGVhcHBsaWNhdGlvbi92bmQub2Fz
aXMub3BlbmRvY3VtZW50LnNwcmVhZHNoZWV0UEsDBBQAAAAAADhuaDMAAAAAAAAAAAAAAAAQAAAA
Q29uZmlndXJhdGlvbnMyL1BLAwQUAAAAAAA4bmgzAAAAAAAAAAAAAAAACQAAAFBpY3R1cmVzL1BL
AwQUAAgACAA4bmgzAAAAAAAAAAAAAAAACwAAAGNvbnRlbnQueG1s7VxRc+I2EH7vr/C4M32KMTYQ

=================================================================================

Replies

In response to

TidSMTP attatchments problem posted by Khaoz on Mon, 10 Apr 2006