B4J Code Snippet Fx.ShowExternalDocument("mailto:"...

While searching for the Mailto String formatting, I found this tool.

B4X:
    Dim mMailAdress As String = "?"                                '"[email protected]"
    Dim mMailSubject As String = "Einkauf" & "%20Real"            'Leerzeichen = %20
    Dim mMailBody As String = "xxx%0A%0Aaaa%0A%0Abbb"            'Zeilenumbruch, 1x = %0A, 2x %0A%0A

    Fx.ShowExternalDocument("mailto:" & mMailAdress & "subject=" & mMailSubject & "&body=" & mMailBody)
 

PatriX

New Member
Hi,
just missing an '?' before subject



B4X:
 Dim mMailAdress As String = "[email protected]"                                '"[email protected]"
    Dim mMailSubject As String = "Einkauf" & "%20Real"            'Leerzeichen = %20
    Dim mMailBody As String = "xxx%0A%0Aaaa%0A%0Abbb"            'Zeilenumbruch, 1x = %0A, 2x %0A%0A

    Fx.ShowExternalDocument("mailto:" & mMailAdress & "?subject=" & mMailSubject & "&body=" & mMailBody)

TchĂ´ :)
 
Top