Android Code Snippet SMTP equal sign and another

Hi all, if you have sign equal in SMTP you have problem, same thing with form feed etd. Example this code:

B4X:
    Dim testo As String
    testo = $"Look this link: https://play.google.com/store/apps/details?id=com.etc"$

    'Send Email
    SMTP.To.Add($"${edt_email.Text}"$)
    SMTP.Subject = "XXXXXX"
    SMTP.Body = $"${testo}"$
    SMTP.Send

you have in your email this result:


The part "details?id=com...." you have without char =

You can resolve with this code:

B4X:
    Dim testo As String
    testo = $"Look this link: https://play.google.com/store/apps/details?id=3Dcom.etc"$

    'Send Email
    SMTP.To.Add($"${edt_email.Text}"$)
    SMTP.Subject = "XXXXXX"
    SMTP.Body = $"${testo}"$
    SMTP.Send

the value 61 ( ASCII = ) can be represented by "=3D"
the value 12 (ASCII form feed) can be represented by "=0C"




For another information look this LINK
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…