[Gambas-user] SMTPClient message format issue
Benoit Minisini
gambas at ...1...
Tue Jun 3 23:36:27 CEST 2008
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.
>
I have modified the gb.net.smtp component in revison #1399 for Gambas 2.7.
Now when a mail has only one part, no MIME multipart is used. Only one MIME
part.
This should fix your problem.
Regards,
--
Benoit Minisini
More information about the User
mailing list