hey guys maybe you can help me out with this. im trying to send en email upon registration of our application. here is my code below. it successfully goes through the send function and it logs with a failure due to a NumberFormatException. any ideas? the domain is temporarily for private use until we go live so the real domain has been replaced with MYDOMAIN.com for sake of this post.
The mail server im using is MailEnable Mail Server running on a dedicated windows web host. the address [email protected] exists and the password is correct. I've tried 2 variations of the username one with the @MYDOMAIN.com and one without with the same result. port is correct. it uses ssl. I've verified the connectivity with another mail client.
The mail server im using is MailEnable Mail Server running on a dedicated windows web host. the address [email protected] exists and the password is correct. I've tried 2 variations of the username one with the @MYDOMAIN.com and one without with the same result. port is correct. it uses ssl. I've verified the connectivity with another mail client.
B4X:
report.Initialize("mail.MYDOMAIN.com", 587, "[email protected]", "password", "report")
report.UseSSL = True
report.To.Add("[email protected]")
report.Sender = "[email protected]"
report.Subject = "Android Registration"
report.Body = "--Android Registration--" & CRLF
report.Body = report.Body & "--Company Information--" & CRLF
For i = 0 To comprow.Size - 1
report.Body = report.Body & comprow.GetKeyAt(i) & ":" & comprow.GetValueAt(i)
Next
report.Send
B4X:
Sub report_MessageSent(Success As Boolean)
Log(Success)
If Success Then
ToastMessageShow("Message sent successfully", True)
Else
ToastMessageShow("Error sending message", True)
Log(LastException.Message)
End If
End Sub
B4X:
** Activity (main) Create, isFirst = True **
** Activity (main) Resume **
false
java.lang.NumberFormatException: Invalid double: "null"