I want to send an email using my company email client Nitrodesk Touchdown HD (8.3.00058). However, when I use the email object from the Phone (2.20) library, all that happens is Touchdown opens a new email, but nothing is entered. The 'To' field is empty, as is the email body.
When I select an other email client, eg. GMail, the same fields are filled as expected.
Does anyone have the same experience or better yet, a solution?
This is the solution I came up with, instead of using the mail intent I created an intent from scratch:
B4X:
Dim sEmail() As String = Array As String(PrefManager.GetString("emailto1"),"")
Dim sCcEmail() As String = Array As String(PrefManager.GetString("emailcc1"),PrefManager.GetString("email"))
Dim Intent1 As Intent
Intent1.Initialize(Intent1.ACTION_SEND,"")
Intent1.SetType("application/zip")
Intent1.PutExtra("android.intent.extra.SUBJECT",sSubject.ToString)
Intent1.PutExtra("android.intent.extra.EMAIL",sEmail)
Intent1.PutExtra("android.intent.extra.CC",sCcEmail)
Intent1.PutExtra("android.intent.extra.TEXT",sb.ToString)
Try
StartActivity(Intent1)
Catch
Log("CreateMail: Start Activity Failed... ")
End Try
This is just a snippet of the complete code, but it shows what you can do. When I code it this way, also Touchdown (8.5.00094) works as email client. Hope this helps!
This is the solution I came up with, instead of using the mail intent I created an intent from scratch:
B4X:
Dim sEmail() As String = Array As String(PrefManager.GetString("emailto1"),"")
Dim sCcEmail() As String = Array As String(PrefManager.GetString("emailcc1"),PrefManager.GetString("email"))
Dim Intent1 As Intent
Intent1.Initialize(Intent1.ACTION_SEND,"")
Intent1.SetType("application/zip")
Intent1.PutExtra("android.intent.extra.SUBJECT",sSubject.ToString)
Intent1.PutExtra("android.intent.extra.EMAIL",sEmail)
Intent1.PutExtra("android.intent.extra.CC",sCcEmail)
Intent1.PutExtra("android.intent.extra.TEXT",sb.ToString)
Try
StartActivity(Intent1)
Catch
Log("CreateMail: Start Activity Failed... ")
End Try
This is just a snippet of the complete code, but it shows what you can do. When I code it this way, also Touchdown (8.5.00094) works as email client. Hope this helps!