Benoit, Thanks for the answer. I >Curiously, there is no concept of "mail body" in the MIME message format. I knew that, but SmtpClient offers it and its easy way to send a message. At this point there is another property that isn't clear for me: the .Alternative property. I've read, don't remember where, that is a information passed to old email clients who hasn't reading .html capacities. If you set it a True and send a text content as first part of MIME, the second part is sopused to be the HTML version of the first part. However I do not see any difference between use it as True or False. I mention it because, if it is so, when the .Alternative is True the message should be 1.- text of message 2.- HTML version of same text 3.- attached files, and if .Alternative is False then should be: 1.- text 2.- attached file. Or is .Alternative something obsolete or I don't understand nothing and all this is a mess.... :D:D:D
>But I think you can help him by using the "Content-Disposition" header. How can it be implemented? I haven't seen any way in SmtpClient. Regards 2014-10-22 21:51 GMT+02:00 Benoît Minisini <[email protected]>: > Le 22/10/2014 21:40, T Lee Davidson a écrit : > > Jorge, > > > > I took your code and modified it only enough to use a form to populate > > the relevant data; all else remained the same. > > > > Testing it showed that the attachment was indeed sent as > > "Content-Transfer-Encoding: quoted-printable". > > > > But, that does not appear to be a problem; at least with my Thunderbird. > > The attachment was sent as a true attachment (showing the paperclip) and > > not included in the message body. > > > > Perhaps Base64 encoding is not required for plain text and, hence, the > > reason Gambas does not bother with it. > > > > > > The encoding format is not related at all with how the mail client > displays a mail part: as attachment or inside the mail. > > Curiously, there is no concept of "mail body" in the MIME message format. > > Mail clients usually take the first part that is text or HTML as the > body. But I think you can help him by using the "Content-Disposition" > header. > > I will make some tests as soon as I have time. > > Regards, > > -- > Benoît Minisini > > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
