[Gambas-user] SMTPClient message format issue

Ron ron at ...1740...
Sun Jun 1 12:51:18 CEST 2008


Benoit Minisini schreef:
> On jeudi 29 mai 2008, Ron wrote:
>   
>> Hi,
>>
>> Hereby a request to add a flagfield, apply a bugfix or correct working
>> logic to smtpclient to be able to sent really plaintext messages with it.
>>
>> A plaintext message should look like this: for example:
>> --- cut ---
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>> Content-Transfer-Encoding: 7bit
>>
>> BODY
>> --- cut ---
>>
>> But if you sent simple textbody with smtpclient it results in this:
>> The content-type is first set to multipart/mixed, and later to text/plain.
>>
>> --- cut ---
>> Mime-Version: 1.0
>> Content-Type: multipart/mixed;
>> boundary="----_=_libsmtp_Nextpart__000_000007DA.3B95D19_1"
>> Content-Transfer-Encoding: 7bit
>> Message-Id: <20080529094221.876B542B6 at ...1915...>
>> Date: Thu, 29 May 2008 11:42:21 +0200 (CEST)
>>
>> This is a MIME multipart message. Your mail reader isn't MIME capable.
>> You might not be able to read parts or all of this message.
>>
>>
>>
>> ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1
>> Content-Type: text/plain; name="MIME part #0"; charset="utf-8"
>> Content-Transfer-Encoding: quoted-printable
>>
>> BODY=0D
>> - Powered by Lighthouse V0.0.63 -=0D
>>
>>
>> ------_=_libsmtp_Nextpart__000_000007DA.3B95D19_1--
>>
>> --- cut ---
>>
>> I want to be able to sent command per e-mail to my aibo, but it doesn't
>> grok these, just really plaintext, non multiparted ones.
>>
>> Gambas 2.6.0
>>
>> Thanks,
>> Ron.
>>
>>     
>
> The mail sent by gb.net.smtp is perfectly correct. The problem is in your mail 
> client that does no support MIME...
>
> Anyway, maybe I could detect this specific case and not use multipart message.
>
> But if your mail client does not understand MIME, I wonder what he will do 
> with UTF-8...
>
>   
If you sent an email with thunderbird as plaintext, you get no mime 
entries in it (see first example above)
so I thought that was the correct format.

But a plaintext message with mime is still no html format, so you are 
right about gb.net.smtp sending in a official correct format.
I can live with that. ;-)

The workaround with sending the message by using a socket to port 25, is 
giving me problems, the connection gets dropped, my postfix is a bit to 
picky I think.

Regards,
Ron.




More information about the User mailing list