Problem with SMTP - Network 1.20 Lib

borreri

New Member
Licensed User
Longtime User
Hi,
I'm developing a GPS application that get the GPS position and send it as a Google Map URL. The goal is to receive an email with a link inside that refers directly to a map, in order to show my position.
The problem is that I generate with B4A the following string (checked with a message box):
"http://maps.google.com/maps?q=44.81814723,10.2855763&ll=44.81814723,10.2855763&z=14"

after sendig it with
SMTP.To.Add (destinationmail@mydomain.com)
SMTP.Subject = "GPS - Actual Position"
SMTP.HtmlBody = False
SMTP.Body = message
SMTP.Send

the string in the mail becomes:

As you can see, after the "equal" the next char is wrong.

tested with SMTP.HtmlBody = False or with SMTP.HtmlBody = True
same wrong result.

The actual workaround is to insert two "space" after the "equal"
 

borreri

New Member
Licensed User
Longtime User
Tested with different SMTP server and client

The SMTP library doesn't modify the body in any way. Try it with a different mail server or a different mail client.

Hi Herel,
I tested the application with different SMTP (example also with gmail SMTP) and with different approach (example with SSL)
the result is the same


Other test:
if I insert the above string in the SMTP.Subject it arrives perfectly on the destination mailbox

Other clients:
Tested with different client: Outlook, OWA, Mozilla Thunderbird, Opera
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…