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

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

B4X:
    Dim mMailAdress As String = "?"                                '"xxx@xxx.de"
    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 = "toto@titi.fr"                                '"xxx@xxx.de"
    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ô
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…