Thanks Jorge for you fast reply

I have tried with:

  s = hPart.Headers["content-type"]
       If InStr(s, "charset") > 0 Then
             bla bla bla (estrapolate "charset" content )
       endif

but is not an excellent solution



Il 06/11/2014 12:24, Jorge Carrión ha scritto:
> I use this code in the EMail function to set the mime. I'm not very sure if
> this is what you are asking for:
>
>    For Each fich In aAttached
>              Exec ["file", "-bi", fich] To mime
>              mime = Left(mime, InStr(mime, ";") - 1)
>              fname = Right(fich, - RInStr(fich, "/"))
>              SmtpC.Add(File.Load(fich), mime, fname)
>    Next
>
>
> Hope this helps.
>
> Regards
>
> 2014-11-06 10:49 GMT+01:00 Roberto <[email protected]>:
>
>> Dear All,
>> there is a method to get the charset of a mimepart ( eg.
>> part.ContentType = "plain/text" )?
>> Best Regards
>> Gambas 3.6
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> 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
>


------------------------------------------------------------------------------
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to