[Gambas-user] Retrieve charset of mimepart

roberto rhoct at ...325...
Thu Nov 6 13:20:36 CET 2014


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 <rhoct at ...325...>:
>
>> 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
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>





More information about the User mailing list